Clyybber
ebd97884a0
Add testcase for #14472 ( #14921 )
2020-07-06 20:53:38 +02:00
ee7
a754160d65
tables.nim: Add named fields in smallest and largest ( #14919 )
...
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
2020-07-06 14:02:03 +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
1854d29781
scoped memory management ( #14790 )
...
* fixes the regressions
* closes #13936
* scope based memory management implemented
* enabled tcontrolflow.nim test case
* final cleanups
2020-07-04 07:37:24 +02:00
Timothee Cour
695154970d
deprecate existsDir; use dirExists instead ( #14884 )
2020-07-03 23:04:23 +02:00
Timothee Cour
a6cbe58e8c
typetraits.$: $((int, float), int) is now "((int, float), int)" instead of "(tuple of (int, float), int)" ( #14812 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-07-02 16:19:43 +02:00
Timothee Cour
dc5a40f3f3
{.deprecated: [existsFile: fileExists].} ( #14735 )
...
* {.deprecated: [existsFile: fileExists].}
* s/existsFile/fileExists/ except under deps
* workaround pending #14819
* fix test
2020-07-02 16:19:13 +02:00
Clyybber
1440e70c62
allow packed union ( #14868 )
...
Co-authored-by: Arne Döring <arne.doering@gmx.net >
2020-07-01 11:41:03 +02:00
alaviss
56b3d422b0
typetraits: features and fixes ( #14791 )
...
* 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
2020-06-30 15:25:53 +02:00
Ray Imber
36fa79a524
Fix asyncdispatch drain behavior ( #14820 ) ( #14838 )
...
* 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 >
2020-06-30 15:23:53 +02:00
flywind
8be54b8fa7
add debug fmt string like python's ( #14808 )
...
* add debug format string
* remove try except
* add changelog
2020-06-30 15:21:37 +02:00
Timothee Cour
89a15e417d
CI openbsd: 3x batching via NIM_TESTAMENT_BATCH ; overall CI finishes in 21m instead of 34m ( #14851 )
...
* CI openbsd: 2x batching via NIM_TESTAMENT_BATCH
* auto-generate .builds/openbsd_x.yml to avoid code duplication
* 3x batching
2020-06-30 14:21:30 +02:00
Timothee Cour
1b41c3122b
fix #13432 typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[] ( #14799 )
...
* typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[]
* changelog
2020-06-29 09:34:05 +02:00
Juan Carlos
5d5df4a394
Clean out Deprecated proc ( #14797 )
...
* Remove and/or clean out Deprecated 'add' proc for floats
* Update a test
2020-06-29 09:33:07 +02:00
Clyybber
299ddda5f6
Make unreachable code a warning instead of an error ( #14816 )
...
* Make unreachable code a warning
* Adapt test
* Trigger CI
2020-06-29 08:49:53 +02:00
Clyybber
394a56650a
Fix #14647 ( #14776 )
...
* Fix #14647
* Correct fix
* Typo and add test
* For real now :p
2020-06-28 17:47:47 +02:00
Clyybber
54a52e7d08
Update link to parseSpec proc
2020-06-28 00:13:54 +02:00
Timothee Cour
90808877c5
testament: generic N-fold batching: windows CI 37mn=>16m ( #14823 )
...
* 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
2020-06-27 16:51:17 +02:00
Clyybber
0a9a639230
Add testcase for #4796 ( #14784 )
...
* Add testcase for #4796
* Fix test
2020-06-25 15:12:30 +02:00
Timothee Cour
0c56eeda0e
expr => untyped; stmt => typed ( #14804 )
...
* expr => untyped; stmt => typed
* changelog + comment
2020-06-25 10:22:08 +02:00
Timothee Cour
32f335f594
fix #14802 ( #14803 )
2020-06-25 08:00:19 +02:00
Danil Yarantsev
0327159344
Add test-cases to some fixed issues to close them ( #14795 )
2020-06-24 20:38:08 -07:00
Danil Yarantsev
80952cadaa
Reject casts to builtin typeclasses ( #14788 )
...
* Closes #14231 , closes #14452
* Merge test to tcast.nim
2020-06-24 22:32:01 +02:00
Timothee Cour
3e5743d6f7
add typetraits.elementType ( #14780 )
...
* add typetraits.elementType
* add a test for 0-sized seq
2020-06-24 22:31:07 +02:00
Timothee Cour
37081e2945
fromJson: support object variants ( #14694 )
2020-06-24 18:03:01 +02:00
Timothee Cour
b49ac11a77
fix #10343 ( #14789 )
2020-06-24 18:00:35 +02:00
Clyybber
4cb41f53f0
Add testcase for #14440 ( #14771 )
2020-06-23 14:17:12 +02:00
Andreas Rumpf
da29222f86
init checks and 'out' parameters ( #14521 )
...
* 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
2020-06-23 10:53:57 +02:00
Timothee Cour
a9eee6db65
misc testament cleanups ( #14764 )
...
* misc testament cleanups extracted cleanups from #14530
* make sure all CI failures can be searched with `FAIL: ` including megatest failures
2020-06-23 10:53:03 +02:00
Juan Carlos
8e54bc5b0c
Deprecate and/or remove ospaths ( #14767 )
2020-06-23 10:51:33 +02:00
Timothee Cour
511bd947d3
fix bug in semgnrc: runnableExamples should not semcheck, even with > 1 arg ( #14768 )
2020-06-23 10:06:36 +02:00
Andreas Rumpf
3ba0c30758
sizeof for empty objects/tuples should be 1; fixes #14690 ( #14751 )
2020-06-21 19:58:37 +02:00
Timothee Cour
2039e3e883
fix #13899 defer now works with async ( #14723 )
2020-06-19 15:08:00 +02:00
Clyybber
45d1e55e72
Add testcases for #11811 and #14315 ( #14726 )
...
* Add testcase for #11811
* Add testcase for #14315
2020-06-19 14:56:38 +02:00
Timothee Cour
5ad8b9e8eb
fix #14685 tests/async/t7758.nim flaky ( #14721 )
...
* fix #14685 tests/async/t7758.nim flaky
* address comment
* address comment
2020-06-19 09:53:45 +02:00
Timothee Cour
9c42ae91b7
add legacy workaround; improve test so that it actually tests for the bugfix
2020-06-19 09:53:06 +02:00
solo989
408518c9fe
Update tuple newLit
2020-06-19 09:53:06 +02:00
Timothee Cour
7df27b5035
[cleanups] doassert => doAssert; mark deadcode ( #14711 )
2020-06-17 20:25:25 -07:00
Miran
e7f280bd26
Remove deprecated stuff from stdlib ( #14699 )
...
* update to the latest Jester
* remove deprecated procs from some stdlib modules
* 'criterion' is not maintained anymore and relies on obsolete stuff
2020-06-17 15:25:02 +02:00
Timothee Cour
ff93302f69
use check to investigate #14685 flaky tests/async/t7758.nim ( #14689 )
2020-06-16 15:57:57 -07:00
Timothee Cour
7ded490ec0
cleanup tests/test_nimscript.nims ( #14686 )
2020-06-16 14:38:30 -07:00
Dylan Modesitt
e35b21e553
Close#5586 ( #14682 )
...
* re-enable macos and bsd on some coro tests
* re-enable macos and bsd on some coro tests
2020-06-16 16:24:26 +02:00
Euan
1bc2e19498
Set cincludes and clibdir for FreeBSD, OpenBSD and NetBSD. ( #14680 )
2020-06-16 11:44:28 +02:00
Timothee Cour
dfe51d10a1
addQuitProc now works with closures, and c, js(node/browser) backend; fix some bugs in testament (#14342 )
...
* make addQuitProc great again
* fix bugs in testament
* fix test
* change 2016 => 2020
* addQuitProc => addExitProc + locks
* move to std/exitprocs
2020-06-16 11:43:48 +02:00
Timothee Cour
45cac4afda
fix #14179 , fix #14142 , make CI 1.4x faster (2x faster locally) ( #14658 )
...
* fix #14142 : no more clash with: import os + use of existsDir/dirExists/existsFile/fileExists/findExe in config.nims
* remove a comment
* Revert "fixes the regression #12860 caused; hotfix"
This reverts commit 3d2459bdc0 .
* Revert "Undefine `paramCount` & `paramStr` in nimscript.nim for *.nims (#12860 )"
This reverts commit d38853c504 .
* noNimScript => noWeirdTarget + noNimJs
2020-06-16 08:56:12 +02:00
Timothee Cour
49033eb531
make tests/stdlib tests joinable ( #14626 )
...
* make tests/stdlib tests joinable
* fixup
2020-06-15 13:27:33 +02:00
Timothee Cour
d51beb7b20
make fromJson/toJson work with array[range, typ], + 1 bugfix ( #14669 )
...
* make toJson more robust
* properly handle array
2020-06-15 13:22:43 +02:00
Timothee Cour
bf604c6829
normalizeExe ( #14668 )
2020-06-15 10:57:34 +02:00
jcosborn
5a22d6b57b
fix codegen bug due to changing existing symbol declaration in template ( #14666 )
2020-06-15 08:40:12 +02:00
Timothee Cour
0fc5d3f13b
fix #14655 setLen(seq) now zeros memory ( #14656 )
...
* simplify sysstr.nim
* fix #14655
2020-06-14 11:11:26 +02:00