summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Relax the restrictions on the index types (#9412)LemonBoy2018-10-181-3/+6
|
* make some tests faster (#9413)Miran2018-10-175-43/+20
| | | | | | | | | | | | * remove duplicated slow test * smaller `convex hull` * smaller sleep * faster `trtree` * smaller sleep in `tfuturestream`
* make thavlak and tmarkerproc_regression tests take fewer iterations in order ↵Araq2018-10-172-8/+8
| | | | to speedup the CIs
* Unicode escape in string literals (#9390)Oscar Nihlgård2018-10-171-3/+3
|
* fixes a regression about indexing into UncheckedArrayAndreas Rumpf2018-10-161-0/+4
|
* Merge tests into a larger file (part 5 of ∞) (#9368)Miran2018-10-1695-1813/+1762
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * merge magics * merge metatype tests * merge method tests * merge objects tests * change `import future` to `import sugar` Nim in Action tests are left with `import future`, to ensure compatibility. * merge overload tests * merge proc tests * merge procvar tests * merge range tests * merge seq tests * merge sets tests * remove wrong assert from `tsets3` * fix `jsTests` * better fix
* Merge branch 'devel' of github.com:nim-lang/Nim into develAraq2018-10-151-94/+113
|\
| * fix #8225 os.isHidden was buggy on posix (#8315)Timothee Cour2018-10-151-94/+113
| | | | | | | | | | | | * fix #8225 isHidden was broken on posix * scope rest of tos.nim under blocks to avoid variable scope bugs
* | Merge branch 'Fixes-7845' of https://github.com/cooldome/Nim into ↵Araq2018-10-151-0/+15
|\ \ | | | | | | | | | cooldome-Fixes-7845
| * \ Merge branch 'devel' into Fixes-7845cooldome2018-06-2654-78/+2512
| |\ \
| * | | Fixescooldome2018-06-121-1/+0
| | | |
| * | | Fixes 7845cooldome2018-06-101-0/+16
| | | |
* | | | fixes #2760Araq2018-10-151-0/+10
| |_|/ |/| |
* | | DFA: implement exception handling properlyAndreas Rumpf2018-10-141-13/+33
| | |
* | | merge macros tests (#9367)Miran2018-10-1417-373/+352
| | |
* | | [WIP] Early evaluation of mIs (#8723)LemonBoy2018-10-142-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Early evaluation of mIs The `evalIs` implementation was just a broken copy of `isOpImpl` so let's just avoid it alltogether: `mIs` nodes are either resolved during the semantic phase or bust. * Remove dead code and tidy it up
* | | Merge tests into a larger file (part 3 of ∞: generics) (#9347)Miran2018-10-1465-1276/+1236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * merge generics issues tests * merge tgeneric * merge test with local imports * merge tcan tests * merge matcher tests * more issue tests merged * one more tcan test * merge various small tests into one file * add a test for #3717
* | | add issue #5707 as test case (#9361)Vindaar2018-10-141-0/+6
| | |
* | | fixes #8671; show helpful msg (lookup symbol, eg iterator) on 'attempting to ↵Timothee Cour2018-10-149-5/+71
| | | | | | | | | | | | call undeclared routine' error (#8786)
* | | implement sizeof and alignof operator (manually squashed #5664) (#9356)Timothee Cour2018-10-143-11/+360
| | |
* | | correctly render AST in doAssert/assert condition: fixes #8518; refs #9301 ↵Timothee Cour2018-10-142-66/+112
| | | | | | | | | | | | | | | | | | (#9332) * fixes #8518; refs #9301; correctly render AST in doAssert condition
* | | put several issues in tests (#9352)Miran2018-10-131-11/+57
| | | | | | | | | | | | | | | | | | * put several issues in tests * remove wrong test
* | | Merge tests into a larger file (part 2 of ∞) (#9335)Miran2018-10-1340-802/+809
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * merge controlflow tests * merge distinct tests * merge enum tests * merge fields tests * merge implicit tests * merge iter issues tests
* | | fixes #8916 by fixing typeinfo and marshal. (#9341)Vindaar2018-10-131-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | * fixes #8916 by removing `tyString`, `tySeq`, mod. marshal, typeinfo Need to check in `typeinfo` for nil of the underlying pointer. In marshal don't have to check for nil of seq anymore. * remove reference to string, sequence in `isNil` doc string
* | | make tests green againAndreas Rumpf2018-10-131-4/+6
| | |
* | | destructors: optimize more assignments into moves; also fixes #9294Andreas Rumpf2018-10-124-2/+65
| | |
* | | Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. (#9316)c-blake2018-10-121-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. `ptr array[0,T]` for some unchecked type already works but A) `UncheckedArray` seems to be the intended future way for this kind of access, and B) essentially all use cases will have a `ptr` for that kind of array source and this call signature lets callers drop the trailing `[]` corresponding to that `ptr` deref. This PR relates to issue https://github.com/nim-lang/Nim/issues/9001 . * Add a test for toOpenArray() for UncheckedArray[T]s.
* | | Testament pre parallel (#9137)Jacek Sieka2018-10-1210-1981/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testament: move to root dir (it's not a test) * osproc: fix process index passed to afterRunEvent for parallel runs it was passing the index of the process, not index of all commands * testament: complete file move
* | | Merge tests into a larger file (part 1 of ∞) (#9318)Miran2018-10-12103-3397/+3765
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * merge actiontable tests * merge arithm tests * merge array tests * merge assign tests * merge bind tests * merge casestmt tests * merge closure tests * merge cnt seq tests * merge collections tests * merge concept issues tests * merge concept tests * fix failing tests * smaller outputs Use `doAssert` where possible. * fix wrong output * split `tcomputedgoto` * revert merging concepts * fix failing test
* | | string to string conversion keeps the dest type (#9323)LemonBoy2018-10-121-0/+12
| | | | | | | | | Fixes #9322
* | | 8684 add shortcut sort procs (#9174)Konstantin Molchanov2018-10-111-1/+61
| | | | | | | | | | | | | | | | | | | | | | | | * Stdlib: Algorithm: Add shortcut versions of sort, sorted, and isSorted procs. * Add tests for sort, sorted, and isSorted procs from algorithm module. * Merge sort tests into tsortcall.nim, remove tsort.nim. * Stdlib: Algorithm: Add shortcut versions of sort, sorted, and isSorted procs. * Add tests for sort, sorted, and isSorted procs from algorithm module. * Merge sort tests into tsortcall.nim, remove tsort.nim.
* | | fixes #9281Araq2018-10-111-0/+15
| | |
* | | fixes #9297 (#9298)cooldome2018-10-111-1/+41
| | | | | | | | | | | | | | | | | | * fixes #9297 * improve spacing
* | | test case for #9180 and re-enables the disabled tcompilerapi test (#9181)Timothee Cour2018-10-111-22/+22
| | | | | | | | | | | | | | | | | | * add findNimStdLibCompileTime and un-disable tcompilerapi test; add test case for #9180 * address comments
* | | compiler: show name of instantiating context in error traces (#6763) (#9207)xzfc2018-10-113-4/+7
| | |
* | | Fix wrong heuristic in codegen (#9293)LemonBoy2018-10-111-0/+22
| | | | | | | | | | | | | | | A bare return may trigger the insertion of a genericReset. Fixes #9286
* | | Fix tests on NixOS (#9209) (#9285)xzfc2018-10-103-4/+4
| | | | | | | | | | | | | | | | | | | | | * Replace `/bin/sleep` with just `sleep`, i.e. use environment variable `$PATH` to locate binary. * Replace `/usr/share/zoneinfo` with `$TZDIR` when it is defined, fallback to hardcoded path otherwise. This is the same behavior that Glibc2 normally have, see man 3 tzset.
* | | Unchecked arrays now have their own type (#9267)LemonBoy2018-10-101-0/+4
| | |
* | | fixes #9263Andreas Rumpf2018-10-101-0/+117
| | |
* | | Iter test: closes #3819 (#9272)Miran2018-10-101-0/+28
| | |
* | | Fix macro expansion in expandMacros (#8998)LemonBoy2018-10-091-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix macro expansion in expandMacros Running a semanticized node trough the semantic pass was a bad idea. Fixes #7723 * Simpler smaller implementation
* | | fix tests/generics/t8694.nim: runnableExamples were not run because of #9216 ↵Timothee Cour2018-10-091-3/+3
| | | | | | | | | | | | (#9262)
* | | Fix overload resolution for pragmas evaluation (#8902)LemonBoy2018-10-094-1/+23
| | | | | | | | | | | | Fixes #6448 Fixes #4384
* | | Field checks for everybody (#8957)LemonBoy2018-10-093-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Field checks for JS backend * Clean nkCall nodes with no arguments Generating a nkEmpty in place of no arguments makes no sense form the AST point of view and also trips up the VM codegen. * Field checks for VM backend * Test case for #6612 This patchset fixes #6612 * Add test case for LHS double evaluation * Prevent LHS double-eval for JS backend * Prevent double evaluation in VM backend
* | | Try/Catch support for native JS exceptions (#8955)LemonBoy2018-10-091-0/+31
| | | | | | | | | | | | | | | | | | * Try/Catch support for native JS exceptions * Better tests
* | | Fix transformation of yield in inline context (#9135)LemonBoy2018-10-091-0/+35
| | | | | | | | | | | | | | | | | | When the loop variables are part of the envP block it is not safe to use a nkFastAsgn. Fixes #2656
* | | Fixes #8994. FutureStream read procedure data loss no longer occurs. (#9183)Dominik Picheta2018-10-091-0/+20
| | | | | | | | | | | | | | | | | | * Fixes #8994. FutureStream read procedure data loss no longer occurs. * Optimises the fix for #8994.
* | | fix #8341: add lastPathPart (#9116)Timothee Cour2018-10-091-19/+42
| | |
* | | asyncmacro: add nnkSym support for getName() (#9204)alaviss2018-10-091-0/+14
| | | | | | | | | Fixes #9201
* | | Fix range type construction in the VM (#9205)LemonBoy2018-10-091-0/+20
| | | | | | | | | | | | | | | | | | The `range[X,Y]` representation is wrong, we use `range[X .. Y]` instead. Fixes #9194