Clyybber
d409694b02
:D
2020-07-11 19:17:40 +02:00
Clyybber
425972c4e8
Add testcase for some old fixed issues ( #14960 )
...
* Add testcase for #2703
* Add testcase for #2586
* Small fix
2020-07-10 19:21:50 +02:00
Clyybber
af27e6bdea
Fix #14396 ( #14793 )
...
* 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 >
2020-07-04 17:45:07 +02:00
Andreas Rumpf
52c3633223
warn about observerable stores but don't prevent them for 1.2.2 [backport:1.2]; refs https://github.com/nim-lang/RFCs/issues/230 ( #14510 )
2020-05-30 19:38:51 +02:00
Andreas Rumpf
16003bffe1
fixes #14126 [backport:1.2] ( #14390 )
...
* fixes #14126 [backport:1.2]
* used more logic to optimize it further; updated Nimble version
2020-05-20 00:41:57 +02:00
Clyybber
d6e1b5c070
Fix #14160 ( #14161 )
...
* Fix #14160
* Add testcase
2020-04-30 02:01:07 +02:00
Timothee Cour
95fd8ae93c
fix #13902 distinct uint64 type corruption on 32-bit with borrow ( #13907 ) [backport:1.2]
...
* fix #13902 distinct uint64 type corruption on 32-bit with borrow
Co-authored-by: Timothee Cour <timothee.cour2+lightsail@gmail.com >
2020-04-08 09:56:16 +02:00
Timothee Cour
ab5e26c53c
fix some codegen bugs: NIM_BOOL, NIM_STATIC_ASSERT, --passc:-std=... (etc) ( #13798 )
...
* fix cgen bool D20200328T203812
* --passc:std=c++17 (etc) now works instead of silently ignored
* document caveats for NIM_NIL
2020-04-07 15:17:30 +02:00
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
cooldome
46bfb590c8
fixes #13281 ( #13282 )
...
* fixes ##13281
* add comment to test
2020-01-28 14:55:54 +01:00
Miran
352232e62d
style fix: change 'JS' to 'js' to make it consistent ( #13168 )
2020-01-16 14:14:03 +01:00
Andreas Rumpf
0e7338d65c
better support for PROGMEM like annotations for lets/vars; fixes #12216 ( #12799 )
2019-12-05 13:45:16 +01:00
narimiran
c6a451c584
remove unused imports from tests
2019-11-06 14:35:45 +01:00
Andreas Rumpf
3ba3307d61
remove deprecated procs ( #12535 )
2019-11-05 11:05:46 +01:00
Arne Döring
7cf3395d85
refactor illegal iterator assignment detection ( #12212 )
...
* refactor illegal iterator assignment detection
* delete crappy test
2019-10-11 08:43:58 +02:00
Andreas Rumpf
5a03eea518
revert #12100 ; typeof(nil) is weird enough, don't allow it as the return type
2019-09-02 17:48:06 +02:00
Albert Safin
efe1bed82e
Allow typeof(nil) as a return type
2019-08-31 10:16:26 +00:00
Oscar Nihlgård
bcfb540e57
Allow typeof(nil) as generic parameter ( #11869 )
2019-08-03 10:16:07 +02:00
Andreas Rumpf
19b142401c
fixes #11525
2019-06-26 23:15:58 +02:00
Araq
795044ed2b
make tests green again
2019-05-27 21:29:02 +02:00
Arne Döring
f94ec363ab
Allow void macro result ( #11286 )
...
* allow void macro result
* add test for void macro result type
2019-05-21 21:31:40 +02:00
Araq
22881a3543
closes #9825
2019-05-10 11:43:58 +02:00
Clyybber
a4f531c243
Add testcase for #9684 ( #11221 )
2019-05-10 08:03:48 +02:00
Clyybber
6be9b98e35
Fix #9844 ( #11216 )
...
* Fixes #9844
2019-05-09 22:58:41 +02:00
jcosborn
b1091f85d4
fixes #9578 ( #11176 )
...
* fixes #9578
* fixed and expanded test
2019-05-06 09:34:03 +02:00
Araq
0ecaaa85e9
fixes #9403
2019-05-05 16:08:16 +02:00
Miran
ce152ed91f
iterators: several small fixes ( #11162 )
...
* fix pairs, mpairs, mitems for cstring for JS backend
* add mutation check for pairs and mpairs for strings and seqs
* change the assertion message - modifying (changing elements) is not
a problem, changing the length is
2019-05-04 23:02:50 +02:00
Arne Döring
a55817f9ac
Fix varargs int32 ( #11054 )
...
* fixes #10999
* adds a test for #10999
2019-04-18 20:53:57 +02:00
Miran
43832f8e57
remove shadow warning, fixes #10732 ( #11039 )
2019-04-17 11:54:51 +02:00
LemonBoy
631a8ab57f
Fix edge case in type hashing ( #10601 ) [backport]
...
Empty types introduced by a template produced the same hash of the
"clean" type sharing the same name.
2019-02-08 09:56:32 +01:00
Miran
268197add8
properly deprecate parseopt2 ( #10452 )
2019-01-25 13:13:55 +01: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
cooldome
82c009a2cb
Dead code elimination for entire modules and their init procs if empty ( #10032 )
...
* fixes #9798
* Change order of write modules
* Move datInit calls ahead of initStackBottom
2018-12-30 11:28:12 +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
2a4c09ff88
megatest can be executed
2018-12-11 21:23:21 +01:00
Arne Döring
1105d03644
require errormsg to be specified before file.
2018-12-11 21:23:21 +01:00
Arne Döring
a29ec40032
join simple test
2018-11-23 11:58:32 +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
7ae6b7e9a2
make more tests green for C++; refs #7870
2018-10-30 16:52:33 +01:00
Araq
81e33b9d87
make thavlak and tmarkerproc_regression tests take fewer iterations in order to speedup the CIs
2018-10-17 13:20:45 +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
cooldome
7a5b614edc
fixes #9297 ( #9298 )
...
* fixes #9297
* improve spacing
2018-10-11 09:54:50 +02:00
LemonBoy
7775b7efd1
Fix wrong heuristic in codegen ( #9293 )
...
A bare return may trigger the insertion of a genericReset.
Fixes #9286
2018-10-11 08:36:05 +02:00
xzfc
505ae14f4b
Codegen fix for procs taking type(nil) ( #9231 )
2018-10-09 14:51:34 +02:00
LemonBoy
a1083d7c43
Fix codegen for some set operations
...
Taking the LHS type when a temporary result value was needed lead to bad
code being generated if we get a tyRef.
Fixes #9098
2018-09-28 09:59:45 +02:00
Andreas Rumpf
179791aa9a
Merge pull request #8746 from LemonBoy/nil-opts
...
nil strings are movable
2018-09-23 07:51:22 +02:00
LemonBoy
7a087ffb29
nil strings are movable
2018-09-22 20:47:49 +02:00
Andreas Rumpf
c661f8e1be
Merge pull request #8983 from cooldome/codegen_crash
...
Fixes 8979
2018-09-18 09:36:16 +02:00
Andrii Riabushenko
acaf2b8e76
Fixes 8979
2018-09-16 21:33:21 +01:00