summary refs log tree commit diff stats
path: root/tests/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Allow for locale-based parsing/formatting of dates (#11170)Matt Haggard2019-05-081-0/+27
| | | | | | | | | | | | | | | * Allow for locale-based parsing/formatting of dates * Updates based on review feedback of PR 11170 DateTimeLocale arrays are now indexed by Month and WeekDay enums. More sane date used for testing. Documentation newline. Case change of DefaultLocale (and make it public) * Add changelog entry for DateTimeLocale addition to times module * Use pattern symbols for DateTimeLocale attribute names
* fixes another regression; the behaviour of 'array' formatting was changedAraq2019-04-151-0/+8
|
* fixes #11012Araq2019-04-152-22/+18
|
* rst: parse brackets individually, fixes #10475 (#10997)Miran2019-04-101-0/+12
|
* Strformat symbol binding (#10927)Arne Döring2019-04-053-2/+74
|
* fixes json.nim regressionAndreas Rumpf2019-03-291-4/+0
|
* bitops: add reverseBits and test (#10835)Tomohiro2019-03-131-0/+42
|
* StringStream and parseJson, parseCfg, parseSql et al for the vm (#10746)Arne Döring2019-02-281-0/+40
|
* Handle IPv6 in bindAddr #7633Federico Ceratto2019-02-231-0/+14
| | | | Add test
* Replace the duration conversion procs with new improved ones (#10710)Oscar Nihlgård2019-02-191-0/+9
|
* 32 bit fixes (#10608)Arne Döring2019-02-131-6/+2
|
* New implementation of times.between (#10523)Oscar Nihlgård2019-02-061-35/+138
| | | | | | | | * Refactor ttimes * New implementation of times.between * Deprecate times.toTimeInterval
* Vm bitops fixes (#10520)Arne Döring2019-02-051-51/+16
|
* move tests from `tospaths` to `tos`, fixes #9671narimiran2019-01-232-142/+111
| | | | Also, change some of `echo`s to `doAssert`.
* Added basic bit manipulation procs to bitops (#10338)Ico Doornekamp2019-01-231-0/+57
|
* Fix spelling errors (#10379)Federico Ceratto2019-01-191-1/+1
|
* json: support tuple (#10010)Timothee Cour2019-01-161-0/+4
|