summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* sink parameter inference for types that have destructors (#13544)Andreas Rumpf2020-03-043-4/+8
| | | | | | | | | | | | | | * ensure capitalize doesn't take an inferred sink parameter * sink parameter inference: first version, for now disabled. Changed that sink parameters can be consumed multiple times in order to adhere to our spec. * sink inference can now be disabled with .nosinks; sometimes for proc type interop this is required * fixes yet another critical DFA bug * better implementation that also understands if expressions etc * document sink parameter inference and allow for global disabling
* std/compilesettings implementation (#13584)Andreas Rumpf2020-03-041-0/+19
| | | | | | | | * Implement compileSetting() and compileSettingSeq() * Change from magic to vmop * better design for querySetting Co-authored-by: genotrance <dev@genotrance.com>
* fix #13531 by adding a test (#13581)Miran2020-03-041-0/+31
|
* make genericParams support static[T] generic params (#13433)Timothee Cour2020-03-021-1/+44
| | | | | | * make genericParams support static[T] generic params * WrapStatic => StaticParam
* fixes #13543 and added times.isLeapDay (#13547)Timothee Cour2020-03-011-3/+7
|
* EndsInNoReturn in expressions extension, fixes #13490 (#13520)cooldome2020-02-281-0/+37
| | | | * fix #13490
* save another 33s of CI for tests/gc/gcleak.nimTimothee Cour2020-02-271-1/+8
|
* CI tests run faster: save 120s in azure machines, 335s on local OSXTimothee Cour2020-02-271-1/+13
|
* revert changes to tests/gc/gcleak2.nimTimothee Cour2020-02-271-72/+5
|
* make CI tests faster + more preciseTimothee Cour2020-02-271-5/+72
|
* cleanup Ordinal (#13501)Timothee Cour2020-02-272-2/+19
|
* tables/sharedtables/intsets/etc: fix #13496, #13504, #13505; add lots of ↵Timothee Cour2020-02-264-16/+252
| | | | | | | | | | | tests (#13498) [backport] * fix #13496 handle tombstones * add test * more tests * fix #13504; add SharedTable tests * fix #https://github.com/nim-lang/Nim/issues/13505 intsets.missingOrExcl silently gave wrong results sometimes * add test for tintsets
* fix #13455 ; joinPath(a,b) now honors trailing slashes in b (or a if b = "") ↵Timothee Cour2020-02-261-3/+26
| | | | | | | (#13467) * fix #13455 ; joinPath(a,b) now honors trailing slashes in b (or a if b = "") * fix test windows
* fix #13449 texitcode flaky on windows (#13487)Timothee Cour2020-02-251-1/+4
|
* make devel green again: tnetdial still doesn't work on Travisnarimiran2020-02-251-0/+1
|
* fix 3 minor bugs in joinPath (see #13455) (#13462) [backport]Andrey Makarov2020-02-231-0/+4
|
* relativePath("foo", "foo") is now ".", not "" (#13452)Timothee Cour2020-02-223-4/+18
|
* fixes #13457 (#13458)Andreas Rumpf2020-02-211-1/+8
|
* Remove testutils (#13435) [backport]Clyybber2020-02-192-2/+7
|
* [backport] pseudorandom probing for hash collision (#13418)Timothee Cour2020-02-193-8/+30
|
* fix incorrect lenTuple implementation (#13423)Timothee Cour2020-02-191-4/+36
|
* capture macro now accepts variables of different types (#13356)Clyybber2020-02-151-3/+11
| | | | | | | | | | * Capture macro can now accept variables of different types * Add test * Update examples * Use let instead of var
* fixes #13368 (#13397)cooldome2020-02-141-0/+11
|
* Revert "remove dead code test_nimhcr_integration.(bat,sh) (#13388)" (#13396)Andreas Rumpf2020-02-122-0/+27
| | | This reverts commit 90491ea0a98aaca198bebf3ce99a1f86559f18ec.
* remove dead code test_nimhcr_integration.(bat,sh) (#13388)Timothee Cour2020-02-122-27/+0
| | | | | | * enable test for osx: import tests/dll/nimhcr_integration * re-disable osx test
* fixes #13378 [backport] (#13392)Andreas Rumpf2020-02-111-0/+16
|
* fix several bugs with `repr` (#13386)Timothee Cour2020-02-113-4/+20
|
* fix `is` with generic types; fix `genericHead(Foo[T])` (#13303)Timothee Cour2020-02-092-2/+51
| | | | | * fix #9855, fix #9855, fix genericHead * render TTypeKind via toHumanStr
* fixes #13314 (#13372)Andreas Rumpf2020-02-091-1/+25
|
* Add sideEffect pragma to importC procs in posix, winlean and time module ↵Tomohiro2020-02-081-0/+10
| | | | | | | | | (#13370) * Add sideEffect pragma to procs in winlean * Add sideEffect pragma to procs in posix * Add test for #13306 * Add sideEffect pragma to procs in times * Fixes #13306
* Revert "printing float values will have one more digit. (#13276) [backport]" ↵Timothee Cour2020-02-088-42/+38
| | | | | (#13363) This reverts commit b2c6db97f9f477f6999fa9c7aae5e32f10b6b3fe.
* fix #6736: templates in unittest now show actual value (#13354)Miran2020-02-071-0/+25
|
* printing float values will have one more digit. (#13276) [backport]Arne Döring2020-02-078-38/+42
| | | | * printing float values will have one more digit. Fixes #13196
* testament: introduce 'matrix' for testing multiple options (#13343)Miran2020-02-071-1/+3
|
* miscellaneous bug fixes (part 3) (#13304)Timothee Cour2020-02-071-1/+1
| | | | | | | | | | * fix deprecation; fix indentation * git clone: use -q * fix Warning: pragma before generic parameter list is deprecated; fix typo * bugfix: sysTypeFromName("float64") was never cached
* fix #13182: `proc fun(a: varargs[Foo, conv])` now can be overloaded (#13345) ↵Timothee Cour2020-02-071-0/+47
| | | | [backport]
* fixes #13269 (#13344)Andreas Rumpf2020-02-071-0/+14
|
* fix #13349 regression: isNamedTuple now works with generic tuples (#13350)Timothee Cour2020-02-071-0/+5
|
* [backport] -d:danger should imply -d:release (#13336)Miran2020-02-051-0/+13
|
* Fixed codegen for constant cstring with --gc:arc (#13326)Ico Doornekamp2020-02-041-0/+16
| | | | | | * Fixed codegen for constant cstring with --gc:arc, fixes #13321 * Added test for #13321
* enable testing -d:nimHasLibFFI mode (#13091)Timothee Cour2020-02-042-82/+83
|
* fix #13132 tnetdial (#13318)Timothee Cour2020-02-041-2/+2
|
* Fix capture for object types (#13315)Clyybber2020-02-021-2/+16
| | | | | | * Fix capture for object|tuple|... types * Add test case
* miscellaneous bug fixes (#13291)Timothee Cour2020-01-301-0/+9
| | | | | | | | * fix for emscripten etc * add testcase for #13290 * replace deprecated isNilOrWhitespace
* Repr v2 progress (#13268)cooldome2020-01-282-1/+35
| | | | | | | | | | * progress on repr_v2 * repr progress * add ref objects with distrinct * fix failing tests
* TlSF Alloctor: use less memory for --gc:arc (#13280)Andreas Rumpf2020-01-281-0/+2
|
* fixes #13281 (#13282)cooldome2020-01-281-1/+17
| | | | | | * fixes ##13281 * add comment to test
* ARC: remove unnecessary codeAraq2020-01-261-4/+3
|
* contributing docs: symbols need package prefix; changed allocStats to ↵Timothee Cour2020-01-258-8/+8
| | | | nimAllocStats (#13247)
* Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses ↵Ico Doornekamp2020-01-239-56/+31
| | | | | | | | | | | | | | | | | | | | | | | | | allocShared0. (#13190) * Cleanup, remove lib/system/allocators.nim. seqs_v2 and strs_v2 now use allocShared0 by default. * Fixed -d:useMalloc allocShared / reallocShared / deallocShared. These now use the alloc/dealloc/realloc implementation that also takes care of zeroing memory at realloc. * Removed debug printfs * Removed unpairedEnvAllocs() from tests/destructor/tnewruntime_misc * More mmdisp cleanups. The shared allocators do not need to zero memory or throw since the regular ones already do that * Introduced realloc0 and reallocShared0, these procs are now used by strs_v2 and seqs_v2. This also allowed the -d:useMalloc allocator to drop the extra header with allocation length. * Moved strs_v2/seqs_v2 'allocated' flag into 'cap' field * Added 'getAllocStats()' to get low level alloc/dealloc counters. Enable with -d:allocStats * *allocShared implementations for boehm and go allocators now depend on the proper *allocImpl procs