summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* writing to a location counts as "side effect"; implements ↵Andreas Rumpf2020-07-251-0/+31
| | | | https://github.com/nim-lang/RFCs/issues/234 (#15030)
* fix assignment to converted concept type (#15051)jcosborn2020-07-241-17/+37
| | | | | | | * fix assignment to converted concept type * check for resolved concepts * add extra test
* fixes #15044 [backport:1.2]Andreas Rumpf2020-07-231-0/+18
|
* Add a testcase for #14480. Fixes #14480 (#15037)Danil Yarantsev2020-07-221-0/+7
|
* cursor inference bugfixAndreas Rumpf2020-07-201-2/+62
|
* 'isolate' builtin; refs https://github.com/nim-lang/RFCs/issues/244 (#15011)Andreas Rumpf2020-07-201-0/+36
|
* [Backport] Fixes callbacks being dropped on Linux/macOS/BSD. (#15012)Dominik Picheta2020-07-191-0/+67
| | | | | | | | | Fixes #15003. This is a serious bug which occurs when data cannot be read/sent immediately and there are a bunch of other read/write events pending. What happens is that the new events are dropped which results in the case of the reported bug resulted in some data not being sent (!).
* enable,document,test getImplTransformed, very useful for understanding how ↵Timothee Cour2020-07-181-0/+20
| | | | | | nim transforms code (#14924) * enable,document,test getImplTransformed, very useful for understanding how nim transforms code
* Fix #14906 (#14949)Tomohiro2020-07-181-2/+54
| | | | | | | | | | | | | | | | | | | | | | | * Fix #14906 by wrapping outputStream with PipeOutStream * Fix compile error when ./build_all.sh * Use PipeOutStream on posix * Fix compile error when build_all.sh * Use ptr UncheckedArray * Replace copyRefObj * Remove tmp buffer from posPeekData * Add more tests for outputStream * Add comments about PipeOutStream.buffer * Fix bug in posReadLine * Move implementation of newPipeOutStream to streamwrapper module
* arc: cursors for simple for loop variables (#15008)Andreas Rumpf2020-07-172-4/+29
| | | | | * arc: cursors for simple for loop variables * merged devel
* Show that a variable is cursor in --expandArc (#15002)Clyybber2020-07-172-12/+12
|
* Fix #14994 (#14996)Clyybber2020-07-151-0/+14
| | | | | | | * Fix #14994 * Revert misplaced "optimization" * Typo
* An optimizer for ARC (#14962)Andreas Rumpf2020-07-159-26/+229
| | | | | | | | | | | | | | | | | | | | * WIP: an optimizer for ARC * do not optimize away destructors in 'finally' if unstructured control flow is involved * optimized the optimizer * minor code cleanup * first steps to .cursor inference * cursor inference: big steps to a working solution * baby steps * better .cursor inference * new feature: expandArc for easy inspection of the AST after ARC transformations * added topt_cursor test * adapt tests * cleanups, make tests green * optimize common traversal patterns * moved test case * fixes .cursor inference so that npeg compiles once again * cursor inference: more bugfixes Co-authored-by: Clyybber <darkmine956@gmail.com>
* repr_v2 improvements (#14992)Clyybber2020-07-151-0/+6
| | | | | | | * Support proc in arc repr * Typo * Improve repr for strings and chars
* Fix #14990 (#14991)Clyybber2020-07-151-0/+11
| | | | | * Fix #14990 * Add testcase
* Fix #14985 (#14988)Clyybber2020-07-151-0/+30
|
* fix #13086 (#14987)flywind2020-07-151-0/+33
| | | | | | | | | | | | | | | | | * fix #6608 * minor * fix * clean tests * make testamnet happy * again * minor * fix #13086
* Reenable a few testsClyybber2020-07-144-10/+7
|
* Closes #10396Clyybber2020-07-141-0/+55
|
* Closes #13253Clyybber2020-07-141-0/+31
|
* Closes #8426Clyybber2020-07-141-0/+14
|
* Clean up macros (#14959)Juan Carlos2020-07-143-5/+2
|
* injectdestructors fixes and refactor (#14964)Clyybber2020-07-144-5/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | * injectdestructors fixes and refactor * Tiny cleanup * Refactor and expand testcase * Closes #14902 by adding testcase * Better naming * Fix test failures * Misc cleanup * Add testcase for #14968 * Better approach; expand testcases * Optimizations and fixes * Add testcase * typo * Tiny cleanup
* fix #14475; unittest.require now works with `nim c`; require and check now ↵Timothee Cour2020-07-143-1/+25
| | | | | | | | | | | | | works with -d:nodejs (#14676) * fix #14475; make unittest work with -d:nodejs * fixup * fixup * disable inim, delaunay which failed after unittest.require got fixed * re-enable tests that have been fixed
* add full tests from #9463 (#14975)jcosborn2020-07-141-11/+161
|
* fix #6608 (#14963)flywind2020-07-141-0/+16
| | | | * fix #6608
* Fix #12759 (#14967)flywind2020-07-121-0/+10
| | | | | * add testcase for #5926 * fix #12759
* :DClyybber2020-07-111-0/+28
|
* add testcase for #5926 (#14965)flywind2020-07-111-0/+22
|
* Add testcase for some old fixed issues (#14960)Clyybber2020-07-102-18/+8
| | | | | | | * Add testcase for #2703 * Add testcase for #2586 * Small fix
* Add testcase for #14383 (#14957)Clyybber2020-07-102-0/+36
|
* Add testcase for #13815 (#14956)Clyybber2020-07-101-1/+14
|
* Add testcase for #12571 (#14955)Clyybber2020-07-101-0/+16
|
* Add testcase for #4722 (#14954)Clyybber2020-07-101-0/+21
|
* fix #14912, make `--useVersion:1.0` work again (#14945)Miran2020-07-101-0/+50
| | | | | * fix #14912, make `--useVersion:1.0` work again * a better fix * add test
* fixes #14925 (#14947)Andreas Rumpf2020-07-091-1/+8
|
* add testcase for #4668 (#14946)flywind2020-07-091-0/+16
| | | | | closes #4668 closes #9463
* fix #11009 (#14935)flywind2020-07-091-0/+10
|
* Add testcase for #10465 (#14943)flywind2020-07-091-0/+43
| | | | | | | | | | | | | | | | | | | * add debug format string * remove try except * add changelog * add docs and more tests * Update lib/pure/strformat.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * minor * add testcase Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* add docs and more tests for debug format strings (#14861)flywind2020-07-081-3/+70
| | | | | | | | | | | | | | | | | * add debug format string * remove try except * add changelog * add docs and more tests * Update lib/pure/strformat.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * minor Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* Add testcase for #12129 (#14940)Clyybber2020-07-081-0/+14
| | | | | * Add testcase for #12129 * Fix test
* remove a condition that table size must be passed as power of 2 (#14926)Miran2020-07-082-2/+11
| | | | | | | | | | | | | | | * remove a condition that table size must be passed as power of 2 * remove power-of-2 condition from sets and sharedtables * remove power-of-2 condition from deques * use 'correctSize' for both branches * prettify changelog.md and fix typos * add a changelog entry * fix double-call of 'right-size' * fix the same thing in sets.nim * introduce a new internal proc `slotsNeeded` Deprecate the public proc `rightSize`, which is not needed anymore. Now it is an identity function, allowing the old code to work correctly and without extra allocations.
* fixes #14900, this time for real, maybe (#14934)Andreas Rumpf2020-07-081-17/+11
|
* closes #14878Araq2020-07-081-1/+19
|
* fixes #14805Araq2020-07-081-0/+14
|
* fixes #14900Araq2020-07-081-0/+20
|
* fixes #14899Araq2020-07-081-0/+14
|
* progressAraq2020-07-081-1/+1
|
* fixes #14402 (#14908)Andreas Rumpf2020-07-081-0/+26
| | | | | * fixes #14402 * added a test case
* Add testcase for #14864 (#14928)Clyybber2020-07-073-0/+13
| | | | | * Add testcase for #14864 * :D