summary refs log tree commit diff stats
path: root/tests/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* attempt to make travis green againAraq2017-09-051-14/+18
|
* Remove expr/stmt (#5857)Arne Döring2017-07-253-20/+21
|
* fixes #6049 add mixin release, acquire to withLock (#6113)andri lim2017-07-162-0/+21
|
* fixes #6046 parsecfg failed to parse negative int (#6097)andri lim2017-07-141-0/+23
|
* fixes #5966Fabian Keller2017-06-201-1/+22
|
* fix orderedtable enlarge proc. (#5937)Parashurama2017-06-051-0/+18
| | | This fixes issue #5917
* Merge branch 'araq2' into develAraq2017-05-171-1/+23
|\
| * Merge branch 'zahary' into araq2Andreas Rumpf2017-05-171-1/+23
| |\
| | * close #5757Zahary Karadjov2017-04-301-1/+23
| | |
* | | Fixes #5761.Dominik Picheta2017-05-171-1/+21
| | |
* | | Merge pull request #5019 from FedericoCeratto/json_testsDominik Picheta2017-05-161-0/+384
|\ \ \ | |/ / |/| | Add JSON tests based on https://github.com/nst/JSONTestSuite
| * | Add JSON tests based on https://github.com/nst/JSONTestSuiteFederico Ceratto2017-04-091-0/+384
| | |
* | | disable fragile parts of thttpclient.nimAndreas Rumpf2017-05-041-9/+11
| | |
* | | added IP v6 parsing testsAndreas Rumpf2017-05-041-0/+217
| | |
* | | Implement dial, support IPv6 in httpclient (#5763)Ruslan Mustakov2017-05-022-2/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement dial, support IPv6 in httpclient Added ``dial`` procedure to networking modules: ``net``, ``asyncdispatch``, ``asyncnet``. It merges socket creation, address resolution, and connection into single step. When using ``dial``, you don't have to worry about IPv4 vs IPv6 problem. Fixed addrInfo loop in connect to behave properly. Previously it would stop on first non-immediate failure, instead of continuing and trying the remaining addresses. Fixed newAsyncNativeSocket to raise proper error if socket creation fails. Fixes: #3811 * Check domain during connect() only on non-Windows This is how it was in the previous implementation of connect(). * Call 'osLastError' before 'close' in net.dial * Record osLastError before freeAddrInfo in net.dial * Add missing docs for 'dial' proc * Optimize dial to create one FD per domain, add tests And make async IPv6 servers work on Windows. * Add IPv6 test to uri module * Fix getAddrString error handling
* | | Add test for previous commit.Dominik Picheta2017-04-171-1/+10
| | |
* | | Fixes `null` handling for object refs in JSON unmarshal macro.Dominik Picheta2017-04-171-2/+11
| | |
* | | Fix JSON macro bug with ref objects.Dominik Picheta2017-04-171-3/+29
| | |
* | | Implement support for enum fields in JSON macro.Dominik Picheta2017-04-091-1/+17
|/ /
* | Document `to` macro in JSON and add example.Dominik Picheta2017-04-091-0/+26
| |
* | Implements else branch for JSON unmarshalling of object variants.Dominik Picheta2017-04-091-2/+36
| |
* | Improve error messages and add tests for the JSON macro.Dominik Picheta2017-04-081-25/+75
| |
* | Support int, string and bool fields in unmarshal json macro.Dominik Picheta2017-04-081-21/+40
| |
* | First implementation of JSON unmarshal macro.Dominik Picheta2017-04-081-0/+40
|/
* parsecfg: handle streams and strings when saving or loading configuration ↵Anatoly Galiulin2017-04-061-7/+39
| | | | (#5554)
* Fix posix version of moveFile between different filesystems (#5580)Anatoly Galiulin2017-03-231-0/+1
|
* Reduce the scope of stackTrace var (#5583)Ruslan Mustakov2017-03-221-0/+7
| | | Fixes #5571.
* add bitops module for optimized bit manipulation. (#5201)Parashurama2017-03-144-0/+339
|
* Fixes incorrect fd==0 test on Unix; Conserves handles by default. (#5512)c-blake2017-03-121-1/+1
| | | | | | | | | | | | | | * Fix 2 problems. First, 0 is a valid fd on Unix (easily gotten if user first closes all fds and then starts using memfiles). Use -1 instead for an invalid fd. Second, it is best practice to conserve open fds on Unix and file handles on Windows. These handles are not needed unless the user wants to remap the memory with ``mapMem`` (or a hypothetical future ``proc resize``). Adding a new bool param ``allowRemap=false`` to ``memfiles.open`` solves this cleanly in a "mostly" backward compatible way. This is only "mostly" because the default ``false`` case does not keep unneeded resources allocated, but that most sensible default means that any ``mapMem`` callers need to fix all their open calls to have allowRemap=true, as this PR also does for tmemfiles2.nim. * Include backwards compatibility note.
* close #5472 nre tests should be run (#5474)Florent2017-03-041-0/+22
| | | nre tests were just being compiled - changed so that a failure causes exit code to defer causing `tester` to report it as a failure
* More robust tests for #5453 (#5469)Florent2017-03-031-14/+9
|
* fixes #5444 - nre.findIter keeps searching when no match is possible (#5453)Florent2017-03-021-0/+19
|
* Add gethostname to nativesockets (#5443)Federico Ceratto2017-03-011-0/+8
|
* Merge pull request #5373 from nim-lang/feature/async-streamsAndreas Rumpf2017-02-261-3/+7
|\ | | | | Async streams and HTTP client streaming downloads support
| * Merge branch 'devel' into feature/async-streamsAraq2017-02-251-0/+11
| |\
| * | Implement streamed async/sync downloadFile and deprecate old one.Dominik Picheta2017-02-111-2/+4
| | |
| * | Implement streamed body reading in httpclient.Dominik Picheta2017-02-111-1/+3
| | |
* | | Make use of `used` in unittest (#5410)Fabian Keller2017-02-251-3/+12
| |/ |/|
* | Fixes #5382Anatoly Galiulin2017-02-131-0/+11
|/
* fixes #5349Araq2017-02-081-4/+36
|
* fix string slice & splice (#5311)Parashurama2017-02-011-0/+55
| | | code fixes courtesy of @memophen
* Use onThreadCreation to set default SSL context for each thread (#5265)Ruslan Mustakov2017-01-231-1/+1
| | | Fixes: #4998
* new segfaults.nim stdlib module works on WindowsAraq2017-01-201-0/+4
|
* first implementation of segfaults stdlib moduleAndreas Rumpf2017-01-201-0/+25
|
* Improve & optimize strutils 'find' procs (#5196)Parashurama2017-01-111-0/+27
| | | | | * add 'last' argument to 'find' procs in strutils * add 'rfind' proc for looking up set[char] in strutils * use optimised C function 'memchr' when available
* add copyDir stdlib testAndreas Rumpf2017-01-101-0/+18
|
* Update unit test to handle AssertionError instead of ValueError for #5119Chris Heller2016-12-211-1/+1
|
* Guard against calling split with an empty string as a separator. Fixes #5119Chris Heller2016-12-211-0/+19
|
* make tos.nim green on WindowsAraq2016-12-131-4/+7
|
* Merge pull request #5080 from FedericoCeratto/httpheadersDominik Picheta2016-12-011-0/+28
|\ | | | | Add HTTP header deletion, improve tests