summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix overloading issue with generic invocation (#15135)jcosborn2020-08-181-0/+60
| | | | | * fix overloading issue with generic alias * add test for inheritance depth
* gc_regions: cleanup & fixes for deallocation (#11920)alaviss2020-08-171-0/+23
| | | | | | | | | * gc_regions: withRegion nows return the modified MemRegion * gc_regions: make withScratchRegion dealloc correctly * tests/gc: add tregionleak test This test checks if memory within regions are freed properly.
* Allow pragmas on parameters (#15178)Clyybber2020-08-111-0/+15
|
* Fix #8473 (#15169)Andreas Rumpf2020-08-114-1/+37
|\ | | | | | | | | | | | | | | | | | | | | * Make explicit {.nimcall.} a seperate calling convention * Add testcase for #5688 * Fix bootstrapping * Remove little lies :) * Use typeflag instead
| * Use typeflag insteadClyybber2020-08-101-0/+10
| |
| * Add testcase for #5688Clyybber2020-08-081-0/+17
| |
| * Make explicit {.nimcall.} a seperate calling conventionClyybber2020-08-082-1/+10
| |
* | [FIX] strtabs interpolation in nimscript (#15172)haxscramper2020-08-091-0/+5
| | | | | | | | | | * [FIX] strtabs interpolation in nimscript * [TEST] Use `static` in strtabs test
* | fix #15148 (#15149)flywind2020-08-081-0/+12
|/ | | | | * fix #15148 Co-authored-by: alaviss <leorize+oss@disroot.org>
* net: allow close() to ignore SSL failures due to disconnections (#15120)alaviss2020-08-011-7/+78
| | | | | | | | | | | | | | * net: allow close() to ignore SSL failures due to disconnections Comes with this PR is also a SIGPIPE handling contraption. * net: don't do selectSigpipe() on macOS macOS sockets have SO_NOSIGPIPE set, so an EPIPE doesn't necessary mean that a SIGPIPE happened. * net: fix alreadyBlocked logic * net: WSAESHUTDOWN is also a disconnection error
* fixes #15130 (#15141)Andreas Rumpf2020-08-011-2/+75
| | | | | * fixes #15130 * you really have to copy from cursors
* fixes #15122 [backport:1.2] (#15139)Andreas Rumpf2020-08-011-0/+28
|
* cursor and mutation tracking fixes (#15113)Andreas Rumpf2020-07-302-5/+59
| | | | | | | | * fixes #15110 * fixes #15096 * prepare varpartitions for cursor inference * new cursor inference begins to work * make tests green
* fix overloading case with generic alias (#15116)jcosborn2020-07-301-0/+105
| | | | | * fix overloading case with generic alias * revert reorganization of tests
* asyncnet, net: don't attempt SSL_shutdown if a fatal error occurred (#15066)alaviss2020-07-302-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | * asyncnet, net: don't attempt SSL_shutdown if a fatal error occurred Per TLS standard and SSL_shutdown(3ssl). This should prevent errors coming from a close() after a bad event (ie. the other end of the pipe is closed before shutdown can be negotiated). Ref #9867 * tssl: try sending until an error occur * tssl: cleanup * tssl: actually run the test I forgot to make the test run :P * tssl: run the test on ARC, maybe then it'll be happy * tssl: turns off ARC, switch tlsEmulation on for freebsd * tssl: document why tlsEmulation is employed * net: move SafeDisconn handling logic to socketError
* fixes #14139 (#15107)flywind2020-07-291-0/+9
| | | | | | | * fix #14139 * Update lib/pure/collections/heapqueue.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Clyybber <darkmine956@gmail.com>
* Fix forward declaration issues in template/macro context (#15091)Clyybber2020-07-292-0/+240
| | | | | | | | | | | | | | | | | | | | | | | * Fix forward declaration issues in template/macro context * Correct forward declaration resolving for overloads * Remove old dead code * WIP consistent gensym ids * Minimize diff * Remove obsoleted hack * Add templInstCounter to give unique IDs to template instantiations * Remove obsoleted code * Eh, init in myOpen, not myProcess... * Remove optNimV019 * Add testcase for #13484
* fixes #14616 [backport:1.2] (#15109)Andreas Rumpf2020-07-291-0/+10
|
* disable sink inference, only enable it for the stdlib. Reason: better source ↵Andreas Rumpf2020-07-282-0/+2
| | | | code compatibility (#15105)
* Fix #11352 strutil.insertSep() fails on negative numbers (#15087)Bung2020-07-281-0/+13
| | | | | | | | | | | | | | | | | | | * fix #11352 strutil.insertSep handle negtive number * test for #11352 * optimize * not parts string var * Update lib/pure/strutils.nim Thanks! Co-authored-by: alaviss <leorize+oss@disroot.org> * need to be countdown Co-authored-by: alaviss <leorize+oss@disroot.org>
* fixes #15076 (#15095)Andreas Rumpf2020-07-271-0/+21
|
* fix #14698 nkRecWhen caused internalAssert in semConstructFields when ↵Timothee Cour2020-07-271-0/+20
| | | | | | | | | | | generic type not mentioned in fields (#14709) * fix #14698 nkRecWhen caused internalAssert in semConstructFields when generic type not mentioned in fields * address comment * Update compiler/semtypinst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #11354 jsgen not carefully handle genAddr with nkHiddenAddr,nkStm… ↵Bung2020-07-271-0/+20
| | | | | | | | | | | | | | | | | | | (#15078) * fix #11354 jsgen not carefully handle genAddr with nkHiddenAddr,nkStmtListExpr; genAsgn with lvalue tyVar and rvalue tyPtr * correct logic * add test for #11354 * handle nkHiddenAddr when n.len == 1 * Update compiler/jsgen.nim * Update compiler/jsgen.nim * Apply suggestions from code review Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fixes a closure iterator memory leaks, progress on #15076Araq2020-07-271-0/+36
|
* Add test-cases for #12576 and #12523 (#15085)Danil Yarantsev2020-07-272-4/+36
| | | | | * Add a test-case for #12576 * Add a test-case for #12523
* fixes #15038 [backport:1.2]Andreas Rumpf2020-07-261-0/+26
|
* fixes #15052Andreas Rumpf2020-07-261-0/+11
|
* Add a test-case for #12990 (#15072)Danil Yarantsev2020-07-252-2/+16
| | | | * closes #12990 * Add a test-case for #12990
* strict func: much better error messages (#15068)Andreas Rumpf2020-07-251-1/+4
| | | | | * strict func: much better error messages * documented the 'strict funcs' mode
* 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
|