summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* weaken tosproc test for my Windows machine which doesn't have 'ls'Araq2020-07-071-1/+2
|
* Limit number of error messages from gcc/clang backend (#14852)Tomohiro2020-07-071-0/+5
| | | | | | | * Limit number of error messages from backend * Avoid duplication of -fmax-errors * make tests/misc/trunner.nim success
* Fix #14911 (#14922) [backport]Clyybber2020-07-071-1/+8
| | | | | | | * Fix #14911 * Add testcase * Fix test
* Add testcase for #14472 (#14921)Clyybber2020-07-061-0/+23
|
* tables.nim: Add named fields in `smallest` and `largest` (#14919)ee72020-07-061-0/+14
| | | | | | | | | | The `smallest` and `largest` procs for `CountTable` returned a tuple with named fields, but the same procs for `CountTableRef` returned an anonymous tuple. This commit makes those `CountTableRef` procs more consistent, and adds a test. Fixes: #14918
* Fix #14396 (#14793)Clyybber2020-07-042-26/+96
| | | | | | | | | | | | | | | | | | | | | | * Correct Left-To-Right evaluation of proc args * Fix CPP backend * Add testcase * closes #14396 * closes #14345 * Improve test and optimize * Improve testcase and optimize literals * Fix bug * Expand testcase and use DFA to optimize * Turn genParams into proc * Turn withTmpIfNeeded into a proc * Cleanup * Fix crash * Better analysis * Cleanup * Trailing newline.. * Fix build * Tiny cleanup Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* scoped memory management (#14790)Andreas Rumpf2020-07-048-36/+240
| | | | | | | * fixes the regressions * closes #13936 * scope based memory management implemented * enabled tcontrolflow.nim test case * final cleanups
* deprecate existsDir; use dirExists instead (#14884)Timothee Cour2020-07-035-5/+4
|
* typetraits.$: $((int, float), int)` is now `"((int, float), int)"` instead ↵Timothee Cour2020-07-024-9/+7
| | | | | of `"(tuple of (int, float), int)" (#14812) Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* {.deprecated: [existsFile: fileExists].} (#14735)Timothee Cour2020-07-0212-15/+14
| | | | | | | | | * {.deprecated: [existsFile: fileExists].} * s/existsFile/fileExists/ except under deps * workaround pending #14819 * fix test
* allow packed union (#14868)Clyybber2020-07-011-0/+10
| | | Co-authored-by: Arne Döring <arne.doering@gmx.net>
* typetraits: features and fixes (#14791)alaviss2020-06-301-0/+17
| | | | | | | | | | | | | * typetraits: add support for nnkTypeOfExpr * typetraits: don't wrap typedesc symbols in StaticParam * typetraits: add nested generics support to genericParams * typetraits: make genericParams understand array[I, T] whackiness Also moved tests to ttypetraits * typetraits: clarify comment on genericParams
* Fix asyncdispatch drain behavior (#14820) (#14838)Ray Imber2020-06-301-0/+25
| | | | | | | | | | | * Fix asyncdispatch drain behavior (#14820) * Changed test to use asyncCheck instead of discard after code review (#14820) * Added some debug statements to help understand what is happening in Azure. * Removed debug statements and increased timeouts by 1 order of magnitude to account for slow Azure VMs Co-authored-by: Ray Imber <ray@crankuptheamps.com>
* add debug fmt string like python's (#14808)flywind2020-06-301-0/+105
| | | | | | | * add debug format string * remove try except * add changelog
* CI openbsd: 3x batching via NIM_TESTAMENT_BATCH ; overall CI finishes in 21m ↵Timothee Cour2020-06-301-0/+1
| | | | | | | | | instead of 34m (#14851) * CI openbsd: 2x batching via NIM_TESTAMENT_BATCH * auto-generate .builds/openbsd_x.yml to avoid code duplication * 3x batching
* fix #13432 typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[] (#14799)Timothee Cour2020-06-291-0/+31
| | | | | * typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[] * changelog
* Clean out Deprecated proc (#14797)Juan Carlos2020-06-292-17/+8
| | | | * Remove and/or clean out Deprecated 'add' proc for floats * Update a test
* Make unreachable code a warning instead of an error (#14816)Clyybber2020-06-291-3/+3
| | | | | | | * Make unreachable code a warning * Adapt test * Trigger CI
* Fix #14647 (#14776)Clyybber2020-06-281-1/+7
| | | | | | | | | * Fix #14647 * Correct fix * Typo and add test * For real now :p
* Update link to parseSpec procClyybber2020-06-281-1/+1
|
* testament: generic N-fold batching: windows CI 37mn=>16m (#14823)Timothee Cour2020-06-279-174/+106
| | | | | | | | | * testament: run CI faster thanks to batching * move ta_in, tstdin into existing tosproc * move ta_out,tafalse,texitcode,tstderr into existing tosproc * joinable osproc * move tstdout into existing tosproc * spec: batchable; fix tests * fixup
* Add testcase for #4796 (#14784)Clyybber2020-06-252-0/+13
| | | | | * Add testcase for #4796 * Fix test
* expr => untyped; stmt => typed (#14804)Timothee Cour2020-06-251-0/+6
| | | | | * expr => untyped; stmt => typed * changelog + comment
* fix #14802 (#14803)Timothee Cour2020-06-251-0/+7
|
* Add test-cases to some fixed issues to close them (#14795)Danil Yarantsev2020-06-244-0/+35
|
* Reject casts to builtin typeclasses (#14788)Danil Yarantsev2020-06-241-1/+8
| | | | | * Closes #14231, closes #14452 * Merge test to tcast.nim
* add typetraits.elementType (#14780)Timothee Cour2020-06-241-0/+20
| | | | | * add typetraits.elementType * add a test for 0-sized seq
* fromJson: support object variants (#14694)Timothee Cour2020-06-241-0/+53
|
* fix #10343 (#14789)Timothee Cour2020-06-241-2/+3
|
* Add testcase for #14440 (#14771)Clyybber2020-06-231-1/+15
|
* init checks and 'out' parameters (#14521)Andreas Rumpf2020-06-233-4/+33
| | | | | | | | | | | * I don't care about observable stores * enforce explicit initializations * cleaner code for the stdlib * stdlib: use explicit initializations * make tests green * algorithm.nim: set result explicitly * remove out parameters and bring the PR into a mergable state * updated the changelog
* misc testament cleanups (#14764)Timothee Cour2020-06-232-10/+6
| | | | | * misc testament cleanups extracted cleanups from #14530 * make sure all CI failures can be searched with `FAIL: ` including megatest failures
* Deprecate and/or remove ospaths (#14767)Juan Carlos2020-06-232-2/+2
|
* fix bug in semgnrc: runnableExamples should not semcheck, even with > 1 arg ↵Timothee Cour2020-06-231-0/+10
| | | | (#14768)
* sizeof for empty objects/tuples should be 1; fixes #14690 (#14751)Andreas Rumpf2020-06-211-1/+9
|
* fix #13899 defer now works with async (#14723)Timothee Cour2020-06-191-7/+18
|
* Add testcases for #11811 and #14315 (#14726)Clyybber2020-06-192-1/+22
| | | | | * Add testcase for #11811 * Add testcase for #14315
* fix #14685 tests/async/t7758.nim flaky (#14721)Timothee Cour2020-06-191-2/+7
| | | | | | | * fix #14685 tests/async/t7758.nim flaky * address comment * address comment
* add legacy workaround; improve test so that it actually tests for the bugfixTimothee Cour2020-06-191-31/+7
|
* Update tuple newLitsolo9892020-06-191-0/+32
|
* [cleanups] doassert => doAssert; mark deadcode (#14711)Timothee Cour2020-06-173-14/+14
|
* Remove deprecated stuff from stdlib (#14699)Miran2020-06-1720-78/+139
| | | | | | | * update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff
* use check to investigate #14685 flaky tests/async/t7758.nim (#14689)Timothee Cour2020-06-161-2/+3
|
* cleanup tests/test_nimscript.nims (#14686)Timothee Cour2020-06-161-9/+1
|
* Close#5586 (#14682)Dylan Modesitt2020-06-162-3/+0
| | | | | * re-enable macos and bsd on some coro tests * re-enable macos and bsd on some coro tests
* Set cincludes and clibdir for FreeBSD, OpenBSD and NetBSD. (#14680)Euan2020-06-161-3/+0
|
* `addQuitProc` now works with closures, and c, js(node/browser) backend; fix ↵Timothee Cour2020-06-162-1/+22
| | | | | | | | | | | | | | | some bugs in testament (#14342) * make addQuitProc great again * fix bugs in testament * fix test * change 2016 => 2020 * addQuitProc => addExitProc + locks * move to std/exitprocs
* fix #14179, fix #14142, make CI 1.4x faster (2x faster locally) (#14658)Timothee Cour2020-06-161-0/+7
| | | | | | | | | | | | | | | * fix #14142: no more clash with: import os + use of existsDir/dirExists/existsFile/fileExists/findExe in config.nims * remove a comment * Revert "fixes the regression #12860 caused; hotfix" This reverts commit 3d2459bdc0b6d6236a2cd9209ed81c965ee411a5. * Revert "Undefine `paramCount` & `paramStr` in nimscript.nim for *.nims (#12860)" This reverts commit d38853c504d89d6e361f064a17391afaf42d74b8. * noNimScript => noWeirdTarget + noNimJs
* make tests/stdlib tests joinable (#14626)Timothee Cour2020-06-158-7/+44
| | | | | * make tests/stdlib tests joinable * fixup
* make `fromJson/toJson` work with `array[range, typ]`, + 1 bugfix (#14669)Timothee Cour2020-06-151-0/+26
| | | | | * make toJson more robust * properly handle array