Miran
8088633250
faster CIs ( #13803 )
...
* ttables: smaller table, 5x speedup
* thavlak: less iterations, less loops; 30% speedup
* tasyncclosestall: shorter timeout; 35% speedup
* gcleak4: less iterations, 2x speedup
* ttimes: remove deprecated stuff
* tdangerisrelease: remove cpp backend, 3x speedup
* tfrexp1: smaller range, 2x speedup
* trtree: fix warnings, less iterations, 6x speedup
* tasyncawait_cyclebreaker: smaller swarm size; 2x speedup
* trealloc: smaller number of iterations; 10x speedup
* towned_binary_tree: less iterations, 4x speedup
* tclosure: remove unused code, less iterations; 2x speedup
* twaitany: less durations; 1.4x speedup
* tasync_misc: less iterations, 2x speedup
* t8535: smaller sleep, 1.5x speedup
* tmanyjoin: smaller sleep, 2x speedup
* t12221: shorter sleeps, removed two slower tests; 1.6x speedup
* tfuturestream: smaller sleep; 1.5x speedup
* growobjcrash: less iterations; 2x speedup
* ttryrecv: smaller sleep; 1.5x speedup
* treusetvar: less threads; 2x speedup
* delete tthreadanalysis2, basically a duplicate of tthreadanalysis
* t7758: less iterations, 1.5x speedup
* tasyncawait: smaller swarm, less messages; 1.5x speedup
* tjsandnativeasync: smaller sleep, 1.5x speedup
* tpendingcheck: smaller sleep, 1.5x speedup
* remove rodfiles test category
* move tseq from its own category to 'collections' category
* remove unneeded tests and helpers from 'assert' category
* stdlib: merge tbitops2 into tbitops
* remove 'trepr2' from 'stdlib' cat
* merge 'tstreams' into one file
* remove 'tinefficient_const_table' from 'ccbugs' cat
* merge 'tcollections_to_string' into 'tcollections'
* tblocking_channel: smaller sleep, small speedup
* tconvexhull: less iterartions; 1.2x speedup
* merge 'tdeepcopy2' into 'tdeepcopy'
* merge 'tdisjoint_slice2' into 'tdisjoint_slice1'
* tmissing_deepcopy: smaller sequence
* tsendtwice: smaller arrays; 5x speedup
* remove 'tindexerrorformatbounds'
* disable multimethod tests
* remove 'gc:none' and 'refc' without 'd:useRealtimeGC' from gc tests
* koch.nim: bootstrap just with '-d:release', no need for 'csource'
* add github workflow for documentation
* testament: no need for 8 sub-second decimals
2020-03-30 13:18:12 +02:00
Miran
5b55aa52d0
fix deprecations and other warnings ( #13748 )
2020-03-25 19:15:34 +01:00
Timothee Cour
ed263e174e
fix #13524 astToStr now works inside generics ( #13681 )
2020-03-18 13:43:32 +01:00
Araq
861a5340fe
fixes #13519
2020-03-11 09:26:57 +01:00
Andreas Rumpf
c446c0f57a
fixes #13378 [backport] ( #13392 )
2020-02-11 23:48:41 +01:00
Timothee Cour
e4415422fe
Revert "printing float values will have one more digit. ( #13276 ) [backport]" ( #13363 )
...
This reverts commit b2c6db97f9 .
2020-02-08 09:30:24 +01:00
Arne Döring
b2c6db97f9
printing float values will have one more digit. ( #13276 ) [backport]
...
* printing float values will have one more digit. Fixes #13196
2020-02-07 17:10:25 +01:00
Andreas Rumpf
41555ca86f
fixes #13110 ( #13197 )
2020-01-19 23:30:45 +01:00
Andreas Rumpf
e58c2d261c
[backport] fix #12528 , fix #12525 : incorrect generic type resolution for default values ( #12538 )
2019-10-28 16:56:38 +01:00
Arne Döring
21cbfd72ec
Refactor json macro ( #12391 )
...
* closes #12316
* make tjsonmacro work at js target
* closes #12289
* closes #11988
* also fixed gdb related stuff
2019-10-17 09:55:41 +02:00
Jasper Jenkins
245a954b25
ungeneric unsigned ops ( #12230 )
...
* ungenericise unsigned ops, remove nimNewShiftOps
* fix/remove tests
* update t6448
* fix line info
* disable on 32bit
* fix different line info
* add changelog entry
2019-10-11 08:38:08 +02:00
Araq
57bc8d73b4
fixes subtype relation regression
2019-05-22 07:41:16 +02:00
Araq
90e882d55b
fixes #11239
2019-05-22 07:41:16 +02:00
Andreas Rumpf
95f8ed0382
fixes #6732 ( #11255 )
2019-05-15 08:18:20 +02:00
Andreas Rumpf
9ecb24e443
fixes #88 ( #11243 )
2019-05-15 08:17:29 +02:00
Arne Döring
28394153ab
32 bit fixes ( #10608 )
2019-02-13 23:30:14 +01:00
LemonBoy
0ebef1764d
Propagate tfGcSafe flag to generic instantiations ( #10620 )
...
Fixes a nasty endless loop in the generic instantiation phase.
2019-02-13 23:30:14 +01:00
Ray Imber
94f6a6b294
Fix for issue #10342 . better message for generic subclass instantiation ( #10354 )
...
* Fix for issue #10342 . better message for generic subclass instantiation errors.
2019-01-22 17:05:26 -08:00
Timothee Cour
6ce3949c8a
add isNamedTuple; make $(1, 2) be (1, 2) instead of (Field0: 1, Field1: 2) which leaked implementation detail ( #10070 )
...
* add `isNamedTuple`; make $(1, 2) be (1, 2) instead of leaking implementation detail (Field0: 1, Field1: 2)
fixes this: #8670 (comment) /cc @alehander42 @Vindaar @mratsim
* Note: isNamedTuple is useful in other places, eg #10010 (comment)
* move isNamedTuple to helpers.nim to avoid exposing new symbol to system.nim
* remove workaround in tests/vm/tissues.nim failing test now that #10218 was makes it work
2019-01-08 18:37:25 -08:00
Araq
34815a4697
megatest: make it green on Linux
2018-12-11 21:23:25 +01:00
Araq
916955dc95
make more tests green
2018-12-11 21:23:25 +01:00
Andreas Rumpf
ac785b0623
testament: joinable is now an explicit concept of a test spec
2018-12-11 21:23:24 +01:00
Araq
3b783f7e13
Testament: refactoring; makes the test joiner green
2018-12-11 21:23:23 +01:00
Arne Döring
a5ecbf823f
lots of small changes
2018-12-11 21:23:22 +01:00
Arne Döring
3859878db8
megatest checks output and nimout
2018-12-11 21:23:22 +01:00
Arne Döring
1105d03644
require errormsg to be specified before file.
2018-12-11 21:23:21 +01:00
Araq
562d185cb7
cleanup tests; don't use non-working 'msg' spec field
2018-11-23 13:16:45 +01:00
Arne Döring
e012eb1001
updated tests to be executed
2018-11-23 11:58:28 +01:00
Arne Döring
031bfdec6f
make run the default action of a test in tester
2018-11-23 11:58:28 +01:00
Araq
9a05fd9dcf
disable some tests for the C++ target; refs #7870
2018-11-15 15:10:50 +01:00
Arne Döring
77a0f3768b
adopt tests
2018-11-08 22:28:29 +01:00
Miran
1b17c9f693
More descriptive names of test files ( #9531 )
...
* change generic `tissues` name to more specific
* change `tvarious` to more specific names
2018-10-29 17:07:27 +01:00
Araq
c64391e30b
closes #6220
2018-10-18 17:28:00 +02:00
Miran
95504caa31
make some tests faster ( #9413 )
...
* remove duplicated slow test
* smaller `convex hull`
* smaller sleep
* faster `trtree`
* smaller sleep in `tfuturestream`
2018-10-17 19:46:42 +02:00
Miran
749dbce4c6
Merge tests into a larger file (part 5 of ∞) ( #9368 )
...
* 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
2018-10-16 10:50:10 +02:00
Miran
9f8b93641e
Merge tests into a larger file (part 3 of ∞: generics) ( #9347 )
...
* 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
2018-10-14 08:50:39 +02:00
Vindaar
afd5abdfc2
add issue #5707 as test case ( #9361 )
2018-10-14 08:44:57 +02:00
Timothee Cour
63c00d7be9
fix tests/generics/t8694.nim: runnableExamples were not run because of #9216 ( #9262 )
2018-10-09 21:51:51 +02:00
LemonBoy
6d4503325c
Fix regression with runnableExamples in generic expr
...
The examples should not enter the generic analysis at all.
The regression was introduced in 4cf704bb as a fix for #8694 .
Fixes #9130
Fixes #8694
2018-09-30 14:11:53 +02:00
Araq
5ee904643a
fixes #8883
2018-09-14 15:47:37 +02:00
Araq
e98e214422
fixes #7854
2018-08-30 15:49:51 +02:00
Andreas Rumpf
96e0b56a55
make generic tests green again
2018-08-13 12:54:02 +02:00
Andreas Rumpf
404de2f23e
Merge branch 'devel' into araq-misc
2018-08-10 12:06:16 +02:00
Mamy Ratsimbazafy
bccaa36aba
Tests for v1 closed generics/static issues ( #8572 )
...
* Add tests to confirm https://github.com/nim-lang/Nim/issues/7231 is fixed.
* Add test for closed https://github.com/nim-lang/Nim/issues/6137
* Add test for https://github.com/nim-lang/Nim/issues/7141
2018-08-08 17:49:33 +02:00
Araq
00ef2d6693
make test green again
2018-08-08 15:43:05 +02:00
LemonBoy
c3a9ac4d35
Try conversion to static[T] in generic instantation ( #8443 )
...
Fixes #8439
2018-07-30 10:51:14 +02:00
LemonBoy
d5c9255cab
Allow use of typedesc as type converters ( #8409 )
...
Fixes #8403
2018-07-24 08:25:08 +02:00
LemonBoy
9b98add6c7
Do not crash while instantiating a generic outside a call ( #8279 )
...
Fixes #8270
2018-07-14 01:44:40 +02:00
LemonBoy
c6671776a1
Reset typedescMatched before paramTypesMatch ( #8250 )
...
The flag should not be carried out across different parameters.
Fixes #7794
2018-07-09 15:02:48 +02:00
Andreas Rumpf
0926754e68
make tests green again
2018-07-05 15:51:04 +02:00