summary refs log tree commit diff stats
path: root/tests/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* fix #13531 by adding a test (#13581)Miran2020-03-041-0/+31
|
* fixes #13543 and added times.isLeapDay (#13547)Timothee Cour2020-03-011-3/+7
|
* tables/sharedtables/intsets/etc: fix #13496, #13504, #13505; add lots of ↵Timothee Cour2020-02-262-6/+145
| | | | | | | | | | | tests (#13498) [backport] * fix #13496 handle tombstones * add test * more tests * fix #13504; add SharedTable tests * fix #https://github.com/nim-lang/Nim/issues/13505 intsets.missingOrExcl silently gave wrong results sometimes * add test for tintsets
* fix #13455 ; joinPath(a,b) now honors trailing slashes in b (or a if b = "") ↵Timothee Cour2020-02-261-3/+26
| | | | | | | (#13467) * fix #13455 ; joinPath(a,b) now honors trailing slashes in b (or a if b = "") * fix test windows
* make devel green again: tnetdial still doesn't work on Travisnarimiran2020-02-251-0/+1
|
* fix 3 minor bugs in joinPath (see #13455) (#13462) [backport]Andrey Makarov2020-02-231-0/+4
|
* relativePath("foo", "foo") is now ".", not "" (#13452)Timothee Cour2020-02-221-4/+8
|
* fix several bugs with `repr` (#13386)Timothee Cour2020-02-111-2/+2
|
* fix #6736: templates in unittest now show actual value (#13354)Miran2020-02-071-0/+25
|
* fix #13132 tnetdial (#13318)Timothee Cour2020-02-041-2/+2
|
* fix lots of bugs with parentDir, refs #8734 (#13236)Timothee Cour2020-01-231-5/+5
|
* new os.isRelativeTo (#13212)Timothee Cour2020-01-231-0/+12
|
* fix #13211 relativePath("foo", ".") (#13213)Timothee Cour2020-01-211-0/+4
|
* maybe: allows optional chaining of field access and indexing when LHS i snil ↵Timothee Cour2020-01-181-0/+82
| | | | | | | | | (#13023) * maybe: allows optional chaining * fix tools/kochdocs.nim * improve semantics to distinguish valid from invalid values * for now, wrapnil, isValid, unwrap are not exported
* distinctBase type trait for distinct types (#13031)cooldome2020-01-082-38/+16
|
* clean up deprecated stuff and unused imports in tests (#13059)Miran2020-01-071-1/+3
|
* Rst parser respect `:start-after:` and `:end-before:` in `include` directive ↵Kamanji2020-01-051-0/+79
| | | | | | | | | | | | | (#12972) * [FEATURE] rst parser respect :start-after: in include Rst parser now respects `:start-after:` and `:end-before:` attributes for `include` directive. * [DOC] include directive parsing proc update * [TEST] Added unit tests for include rst directive in `rst` module
* add a StringTable.clear that requires no mode specification (#12853)Andy Davidoff2019-12-091-0/+3
| | | | | | * add clear overload, test, changelog * add since annotation
* better support for PROGMEM like annotations for lets/vars; fixes #12216 (#12799)Andreas Rumpf2019-12-051-1/+1
|
* #12103 - CI for FreeBSD (#12179)Euan2019-11-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * Ref #12103 - adds FreeBSD CI * Fix getApplFreebsd - length of the string includes the null terminator byte, so minus 1 for result length * Show last commit in setup task. * Remove .git from repository URL * Don't include noisy details showing last commit. * Add FreeBSD build status badge * Fix #12182 - disable tconsole on FreeBSD * Disable tgetaddrinfo on FreebSD as getaddrinfo doesn't support the ICMP protocol. * Install boehm-gc-threaded * Use libgc-threaded.so on FreeBSD rather than libgc.so. * Simplify build failure handling. Update alt text for CI badge. * Disable test on FreeBSD * Simplify build config - use GNU make to build csources - set PATH variable using the environment key - remove modification of config to set CC as this is already set * Install git which seems to be missing from current freebsd images * Revert change to how path is set * Add a comment explaining why the length is truncated * Fix tconsole.
* fixes #12612 [backport] (#12681)Andreas Rumpf2019-11-191-0/+8
|
* Version of trimZeros without temp strings (#12633)b3liever2019-11-111-0/+36
|
* remove deprecated procs (#12535)Andreas Rumpf2019-11-051-28/+1
|
* [feature]strformat: add 2 'fmt' macros that use specified characters instead ↵Tomohiro2019-10-281-0/+32
| | | | | | | | | | of '{}' (#11748) * [feature]strformat: add 2 'fmt' macros that use specified chars instead of '{}' * strformat: revert documentation comments of `&` and 'fmt' * strformat: removed single open/close char variant of fmt
* Extent json.to testing to VM, add workrounds for VM bugs. (#12493)Arne Döring2019-10-281-116/+122
| | | fixes #12479
* Refactor json macro (#12391)Arne Döring2019-10-172-22/+41
| | | | | | | | * closes #12316 * make tjsonmacro work at js target * closes #12289 * closes #11988 * also fixed gdb related stuff
* About 50% faster base64 implemention. (#12436)treeform2019-10-171-0/+44
|
* On windows, os.relativePath returns path as is when roots are different (#12329)Tomohiro2019-10-071-0/+15
| | | | | | | * On windows, os.relativePath returns path as is when roots are different * Implement os.sameRoot without windows API * Fix compile error when compiling lib/nimhcr.nim * Fix compile error when compiling lib/nimhcr.nim on Windows
* azure: disable failing testsLeorize2019-10-031-2/+1
|
* Fix how `relativePath` handle case sensitiviy (#12312) [backport]Tomohiro2019-10-011-0/+4
|
* More of StringStream now works at compile time (#12284)Clyybber2019-09-291-0/+11
| | | | | | | | * readLine of StringStream now works at compile time * Work for js backend only at compile time * readAll now works at CT * readAll works in js ct now * Add test
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-275-6/+6
|
* Locks modules should give a compile error when threads are not enabled. (#12231)Ray Imber2019-09-261-0/+1
| | | | | | | | * Locks modules should give a compile error when threads are not enabled. * fix the compile flags to make the tests pass, or ignore files where necessary. * Fixed when statement to account for doc builds.
* fixes #11713, fixes #1034Araq2019-09-041-0/+20
|
* makes more tests greenAndreas Rumpf2019-09-021-7/+7
|
* fixes #12015 by also checking kind of `typeNode` (#12016)Vindaar2019-08-271-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | * fixes #12015 by also checking kind of `typeNode` If a tuple field is aliased it'll appear the same as a ref type in a call to `getType` if only for the kind of the resulting `NimNode` is checked (that is a `nnkBracketExpr`) * fix test case due to #12017 and add more realistic test case Adds an additional test case, which includes generics and is closer to the real failure I encountered * remove previous fix and fix differently after all The previous fix was incomplete, because it failed for generics. Note that the `of "tuple"` is not actually needed, the `nnkBracketExpr` branch in the `else` branch would catch it too, but I decided to introduce it for clarity. However, the latter is actually needed, because it seems for aliases of `seq` we end up in it. * update comment about global `%` proc in json test
* Fixes splitfile (#11918) [bugfix]pgkos2019-08-151-0/+1
|
* Fix issue #10726 - HTTP response without Content-Length is not accessible ↵konradmb2019-08-081-28/+40
| | | | | | | | | | | | (#11904) * Add patch by @xenogenesi * Async test for HTTP/1.1 without Content-Length * Apply suggestions from code review Co-Authored-By: Dominik Picheta <dominikpicheta@googlemail.com>
* tgetaddrinfo: disable ICMP tests for HaikuLeorize2019-08-041-1/+1
| | | | They're not supported by Haiku's getaddrinfo()
* tgetaddrinfo: use sizeof() instead of hardcodingLeorize2019-08-041-3/+3
| | | | | OS like Haiku have a bigger sockaddr_in struct for legacy(?) reasons. Using sizeof() should account for the different struct sizes.
* fixes #11723Araq2019-07-151-0/+18
|
* [bugfix] fix #11588, don't check if SharedTable is initializednarimiran2019-06-261-0/+14
|
* [feature] Added os.delEnv; add delEnv support to nimscript too (#11466)Kaushal Modi2019-06-151-0/+13
| | | [feature] Fixes https://github.com/nim-lang/Nim/issues/11452.
* Attempt to close https://github.com/nim-lang/Nim/issues/11430Charles Blake2019-06-121-7/+14
|
* Use TMPDIR env var if available to get the temp dir name (#11443) [bugfix]Kaushal Modi2019-06-101-0/+12
| | | | | | Additionally, use normalizePathEnd to suffix the dir name with "/" or "\" as appropriate for the current OS. Fixes https://github.com/nim-lang/Nim/issues/11439.
* Bit operator names 2 (#11413)Arne Döring2019-06-061-1/+37
| | | | | | * add bit operator names * add test for bitop alias
* fixes #11369 (#11381)Andreas Rumpf2019-06-021-0/+7
|
* move test for #7632 above `import strformat` (#11270)jcosborn2019-05-201-10/+11
|
* fixes #10952, UNC paths (#11260)Miran2019-05-161-0/+9
|
* fixes #7816 (#11261)Andreas Rumpf2019-05-151-1/+10
|