summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix #14912, make `--useVersion:1.0` work again (#14945)Miran2020-07-101-0/+50
| | | | | * fix #14912, make `--useVersion:1.0` work again * a better fix * add test
* fixes #14925 (#14947)Andreas Rumpf2020-07-091-1/+8
|
* add testcase for #4668 (#14946)flywind2020-07-091-0/+16
| | | | | closes #4668 closes #9463
* fix #11009 (#14935)flywind2020-07-091-0/+10
|
* Add testcase for #10465 (#14943)flywind2020-07-091-0/+43
| | | | | | | | | | | | | | | | | | | * add debug format string * remove try except * add changelog * add docs and more tests * Update lib/pure/strformat.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * minor * add testcase Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* add docs and more tests for debug format strings (#14861)flywind2020-07-081-3/+70
| | | | | | | | | | | | | | | | | * add debug format string * remove try except * add changelog * add docs and more tests * Update lib/pure/strformat.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * minor Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* Add testcase for #12129 (#14940)Clyybber2020-07-081-0/+14
| | | | | * Add testcase for #12129 * Fix test
* remove a condition that table size must be passed as power of 2 (#14926)Miran2020-07-082-2/+11
| | | | | | | | | | | | | | | * remove a condition that table size must be passed as power of 2 * remove power-of-2 condition from sets and sharedtables * remove power-of-2 condition from deques * use 'correctSize' for both branches * prettify changelog.md and fix typos * add a changelog entry * fix double-call of 'right-size' * fix the same thing in sets.nim * introduce a new internal proc `slotsNeeded` Deprecate the public proc `rightSize`, which is not needed anymore. Now it is an identity function, allowing the old code to work correctly and without extra allocations.
* fixes #14900, this time for real, maybe (#14934)Andreas Rumpf2020-07-081-17/+11
|
* closes #14878Araq2020-07-081-1/+19
|
* fixes #14805Araq2020-07-081-0/+14
|
* fixes #14900Araq2020-07-081-0/+20
|
* fixes #14899Araq2020-07-081-0/+14
|
* progressAraq2020-07-081-1/+1
|
* fixes #14402 (#14908)Andreas Rumpf2020-07-081-0/+26
| | | | | * fixes #14402 * added a test case
* Add testcase for #14864 (#14928)Clyybber2020-07-073-0/+13
| | | | | * Add testcase for #14864 * :D
* 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)