summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix #14350, cstrings in JS init as null (#14355)hlaaftana2020-05-153-3/+10
| | | | * fix #14350, cstrings in JS init as null
* fix #14333 (#14336)cooldome2020-05-131-1/+17
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* `osproc.execCmdEx` now takes an optional `input` for stdin, `env`, ↵Timothee Cour2020-05-131-1/+14
| | | | | | | workingDir (#14211) * `osproc.execCmdEx` now takes an optional `input` for stdin * execCmdEx now also takes an optional ``workingDir` and `env`
* fix #14320 (tasyncawait.nim is recently very flaky) + avoid hardcoding ↵Timothee Cour2020-05-137-92/+61
| | | | | | | service ports everywhere + flakyAssert (#14327) * hotfix #14320 tasyncawait.nim is recently very flaky * fix #14327 * add flakyAssert
* Allow let to not have value when using importc (#14258)PMunch2020-05-122-0/+32
| | | | | | | | | | | | | | * Allow let to not have value when using importc This allows a let statement with the `{.importc.}` pragma to not be initialised with a value. This allows us to declare C constants as Nim lets without putting the value in the Nim code (which can lead to errors, and requires us to go looking for the value). Fixes #14253 * Proper fix and documentation + changelog entry * Improve testcase with one from timotheecour * Add test to verify it working with macros
* close #13071 by adding test: nim cpp -r --gc:arc` segfaults on caught ↵Timothee Cour2020-05-121-0/+16
| | | | AssertionError (#14323)
* fix #14314 do not analyze importc procs for effects (#14319)Timothee Cour2020-05-122-4/+36
|
* fix #14312cooldome2020-05-121-2/+13
|
* fix #14219 (#14225)cooldome2020-05-112-0/+16
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* fix #14294 (#14301)cooldome2020-05-111-1/+25
| | | | | | | * fix #14294 * fix orc as well Co-authored-by: cooldome <ariabushenko@bk.ru>
* do not track 'raise Defect' in the .raises: [] clause anymore (#14298)Andreas Rumpf2020-05-111-2/+2
| | | | | | | | | * do not track 'raise Defect' in the .raises: [] clause anymore * --panics:on maps 'raise Defect' to an unrecoverable fatal error * make tests green again * update the documentation too
* `nim doc --backend:js`, `nim doc --doccmd:-d:foo`, `nim r --backend:js`, ↵Timothee Cour2020-05-114-9/+67
| | | | | | | | | | `--doccmd:skip` + other improvements (#14278) * `nim doc --backend:js|cpp...` `nim doc --doccmd:'-d:foo --threads:on'` `nim r --backend:cpp...` (implies --run --usenimcache) * --usenimcache works with all targets * --docCmd:skip now skips compiling snippets; 50X speedup for doc/manual.rst
* fix a critical bug in windows.osproc leading to resource leaks and blocking ↵Timothee Cour2020-05-111-0/+26
| | | | IO [backport] (#14296)
* Fix #14269 (#14286)Clyybber2020-05-091-1/+103
|
* --hint:processing (+friends) is now supported and means ↵Timothee Cour2020-05-082-2/+21
| | | | `--hint:processing:on`, like all other bool flags (#14271)
* Fix #14270 and add testcases (#14276)Clyybber2020-05-081-0/+30
|
* make `from` an operator (#14241)hlaaftana2020-05-081-0/+12
|
* fix #14243 (#14257)cooldome2020-05-071-1/+15
| | | | | * fix #14243 Co-authored-by: cooldome <ariabushenko@bk.ru>
* tslow_tables: wait for an additional 2 seconds (#14266)alaviss2020-05-071-1/+1
| | | | | | | | This test runtime tends to hover around the 5s mark depending on how loaded the system currently is. This causes the test to fail a lot during CI, per analytics: https://dev.azure.com/nim-lang/Nim/_test/analytics?definitionId=1&contextType=build Give the test an extra 2 seconds to account for unrelated overhead.
* Fix the DFA for "unstructured controlflow" (#14263)Clyybber2020-05-071-0/+24
| | | | | * Fix the DFA for "unstructured controlflow" * Add testcase from #14233
* fix #14236 (#14250)cooldome2020-05-071-0/+16
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* fixes #14244 (#14248)cooldome2020-05-061-0/+19
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* fix regression: -d:nimHasLibFFI was not being tested anymore (#14234)Timothee Cour2020-05-062-22/+43
| | | | | | | | * * fix regression: -d:nimHasLibFFI was not being tested anymore, in part because testament was silently treating some errors as easy to overlook messages * turned that message into an error * -d:nimHasLibFFI is now being tested with nim cpp * use correct signatures for importc procs * workaround for openbsd to unblock ctffi testing
* Added bitslice operations for bitops (#14016)awr12020-05-061-1/+70
| | | | | | | | | | | | | | | | | | | | * added bit operations based on bit slices, clarified documentation, made non-mutating versions of mask ops * Added since annotations, some runnable examples * Added mask()/masked() functions, changed internal workings of mask ops to use new bit* funcs * Changelog updated for new bitops improvements * Reorganization, added runnable examples * Documentation adjustments * Add incltrl for since annotation * Fix masked() impl * Fix mask() return type * Don't call toUnsigned on already unsigned types * Remove improper `var T` for flipMasked() * Fix return types for flipMasked() * Slight syntactic cleanup for *masked ops * Added tests for bitslice operations, new mask() operation, non-mutating mask ops * Fix setmasked() var T issue * More comprehensive tests * Fix runnable example for bitsliced() * Fix runnable example for mask()
* Make the fields of `times.DateTime` private (#14197)Oscar Nihlgård2020-05-062-13/+24
| | | | | * Make the fields of `times.DateTime` private * PR fixes
* fix js stacktraces, unify all file,line,col formatting into a single ↵Timothee Cour2020-05-051-4/+5
| | | | | function (#14230) * fix https://github.com/timotheecour/Nim/issues/135 ; unify all file,line,col formatting into a single function
* fix #14217 (#14218)cooldome2020-05-052-2/+28
| | | | | * fix #14217 Co-authored-by: cooldome <ariabushenko@bk.ru>
* fix https://github.com/timotheecour/Nim/issues/152: avoid writing spurious ↵Timothee Cour2020-05-041-6/+2
| | | | | | | | | `^[[0m` to stderr when callStyledWriteLineStderr not called (#14214) * fix https://github.com/timotheecour/Nim/issues/152 `^[[0m` is inserted in stderr for `echo code | nim c -` * resetAttributes not even needed, already handled in styledWriteLine * simplify tests in tests/trunner.nim thanks to this fix
* `echo cmd | nim r - -arg1 -arg2` now works (#14210)Timothee Cour2020-05-041-1/+31
|
* destructors: don't produce stupid code for 'cast' (#14208) [backport:1.2]Andreas Rumpf2020-05-041-0/+14
| | | | | * destructors: don't produce stupid code for 'cast' * fixes #14207
* => supports pragmas & names (+ changed behavior) (#14200)hlaaftana2020-05-031-16/+15
| | | | | | | | | | * => supports pragmas & names (+ changed behavior) (x, y: int) is now parsed as (x: int, y: int) instead of (x: auto, y: int) inside => and ->. * fix pragma check * fixes, use since & LHS of -> supports pragmas
* fixes #14136 (#14198)Andreas Rumpf2020-05-031-0/+44
|
* move since from inclrtl to std/private/since (#14188)hlaaftana2020-05-021-6/+6
| | | | * move since from inclrtl to std/private/since * move since import in system below for HCR
* update tests that tested for the 'discard' error messagesAraq2020-05-025-12/+12
|
* improve the 'has to be discarded' error messageAraq2020-05-024-4/+4
|
* fixes #14159 [backport:1.2]Araq2020-05-021-0/+33
|
* don't close #14142Araq2020-05-021-1/+1
|
* closes #14142Araq2020-05-021-2/+9
|
* exp. features now in correct manual, closes #11932 (#14195)hlaaftana2020-05-021-0/+14
|
* discardable async procs are now an error (#14176)hlaaftana2020-05-012-1/+10
| | | | * add discard warning in manual
* fix sendTo and recvFrom in asyncnet (#14154)rockcavera2020-04-301-17/+8
| | | | | | | | | | | | | * added high level sendTo and recvFrom to std/asyncnet; tests were also added. * add .since annotation, a changelog entry and fixed to standard library style guide. * Improved asserts msgs and added notes for use with UDP sockets * pointers removed in parameters and fixes * added .since annotation * minor fixes
* hotfix: make tcompilerapi green againAraq2020-04-301-2/+3
|
* fixes #13698 [backport:1.2] (#14175)Andreas Rumpf2020-04-301-0/+5
|
* JS unittest stacktrace fix, cleanup js repr and inclrtl includes (#14168)hlaaftana2020-04-301-0/+22
|
* fixes #14054 [backport:1.2] (#14061)Andreas Rumpf2020-04-302-1/+32
| | | | | | | | | * fixes #14054 * make tests green again * more tests are green * maybe now
* Fix #14160 (#14161)Clyybber2020-04-301-0/+15
| | | | | * Fix #14160 * Add testcase
* fixes #14079 [backport:1.2] (#14163)Andreas Rumpf2020-04-292-2/+30
|
* many bugfixes for js (#14158)hlaaftana2020-04-297-12/+134
| | | | | | | | | | | | | * many bugfixes for js fixes #12672, fixes #14153, closes #14123, closes #11331, fixes #11783, fixes #13966, fixes #14087, fixes #14117, closes #12256. mostly fixes the fact that it was allowed to assign to newly created temp variables. additionally attempts to get rid of null initialized seqs/strings (though they might pop up here and there); this simplifies a lot of things and makes code size smaller. even if null seqs/strings pop up here and there it's still better than all those bugs existing. * formatting fixes * CI fixes * more CI fixes
* Fix negative indexed arrays for JS, refs #13966 (#14152)hlaaftana2020-04-291-0/+6
| | | | | * Fix negative arrays for JS, refs #13966 * small extra fix: no need to .slice() cstring in JS
* parseEnum_regression (#14150)cooldome2020-04-281-2/+2
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>