summary refs log tree commit diff stats
path: root/tests/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* Add `hasClosure` to `std/typetraits` (#17501)flywind2021-03-291-0/+92
| | | | | | | | | | | | | | | | * fix nim js cmp fails at CT * Add `hasClosure` to `std/effecttraits` * type * Update changelog.md Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/std/effecttraits.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #14010(fix std/registry + arc) (#17551)flywind2021-03-291-0/+15
| | | | | | | | | | | | | * fix nim js cmp fails at CT * fix #14010 * Update tests/stdlib/tregistry.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tregistry.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Add a getter for all defined Sections in parsecfg (#15450)Ardek Romak2021-03-281-14/+9
|
* fix flaky tnetconnect which sometimes failed with: No route to host ↵Timothee Cour2021-03-271-2/+3
| | | | [OSError] (#17526)
* Fix #17199 (#17348)Clyybber2021-03-261-15/+27
| | | | | | | | | | | | | | | | | | | | | | * don't zero out in a move in the VM * Add testcases for #17199 * Update tests/arc/tarcmisc.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tests/vm/tissues.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Fix test failures * Fix test * Fix tests Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* fix RST parsing after option lists (#17442)Andrey Makarov2021-03-251-0/+49
|
* fix #17260 render `\` properly in nim doc, rst2html (#17315)Timothee Cour2021-03-241-2/+20
|
* fix #17325 linux 32bit CI; fix #17085 flaky test (#17469)Timothee Cour2021-03-241-1/+1
|
* [isolation]fix empty ref object bug (#17471)flywind2021-03-241-0/+8
| | | | | | | | | | | | | * fix nim js cmp fails at CT * [Minor]fix empty ref object for isolation * Update compiler/isolation_check.nim * Update compiler/isolation_check.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* fix #17490 (#17491)flywind2021-03-241-0/+11
|
* add algorithm.merge (#16182)flywind2021-03-231-1/+158
| | | | | | | | | * add merge to algorithm * Apply suggestions from code review * Update lib/pure/algorithm.nim * Apply suggestions from code review * Update changelog.md Co-authored-by: ee7 <45465154+ee7@users.noreply.github.com>
* fix #17458 tnetconnect.nim flaky (#17459)Timothee Cour2021-03-231-12/+16
| | | | | * fix tests * fix #17458
* refs #17292 fix `repr` with `do:` (#17449)Timothee Cour2021-03-231-0/+80
| | | | | * refs #17292 fix `repr` with `do:` * address comment
* fix #17454 (#17461)Timothee Cour2021-03-231-1/+4
|
* follow up #17391 add testcase (#17404)flywind2021-03-191-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Revert "make system random work in VM" * fix #17380 * attempt to fix bug * fix * better * fix * a bit * fix the leaks * revert * fix * better * follow up #17391 * fix * Update tchannels.nim * Update tests/stdlib/tchannels.nim * Update tchannels.nim
* followup #17398: `getTempDir`, `getConfigDir` now do not have trailing ↵Timothee Cour2021-03-181-3/+3
| | | | | | | DirSep (#17402) * followup #17398: `getTempDir`, `getConfigDir` now do not have trailing DirSep * fix test
* Rst test check messages (fix #17280) (#17338)Andrey Makarov2021-03-171-75/+125
|
* allow short-style rst references with symbols (#17372)Andrey Makarov2021-03-171-0/+25
|
* [std/channels]fix recv leaks(Part One) (#17394)flywind2021-03-172-3/+3
|
* fix #17383: json.%,to and jsonutils.formJson,toJson now works with ↵Timothee Cour2021-03-162-1/+35
| | | | | | | uint|uint64 (#17389) [backport:1.2] * fix #17383: json.%,to and jsonutils.formJson,toJson now works with uint|uint64 * fixup * fix for js
* Revert "make system random work in VM" (#17378)flywind2021-03-151-2/+0
|
* New channels implementation for ORC (#17305)flywind2021-03-122-0/+389
| | | | | | | * Update lib/std/channels.nim * Rename tchannel_pthread.nim to tchannels_pthread.nim * Rename tchannel_simple.nim to tchannels_simple.nim Co-authored-by: Mamy Ratsimbazafy <mamy_github@numforge.co>
* fix RST parsing when no indent after enum.item (fix #17249) (#17257)Andrey Makarov2021-03-121-0/+9
|
* refs #4347, add `ZZZ` and `ZZZZ` patterns for timezone offsets without ↵Miran2021-03-111-0/+4
| | | | colons (#17318)
* add typetraits.OrdinalEnum, enumutils.symbolName (#17281)Timothee Cour2021-03-101-0/+21
|
* fix #17275 (#17276)flywind2021-03-091-4/+1
|
* improve test coverage for isolation (#17297)flywind2021-03-082-16/+115
| | | | | * improve test coverage for isolation * a bit better
* add testcase for #12005 (#17278)flywind2021-03-081-0/+14
| | | | | | | | | | | | | | | | | | | | | * remove unnecessary when statement * remove outdated codes * reuse jsffi * move js json coverage * close #12005 add testcase * Update tests/stdlib/tthreadpool.nim * Update tests/stdlib/tthreadpool.nim * Update tests/stdlib/tthreadpool.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* add setutils.[]= (#17272)Timothee Cour2021-03-081-0/+11
| | | | | * add setutils.[]= * address comments * proc => func (for other symbols too)
* stdlib/os: add isAdmin (#17012)Roman Inflianskas2021-03-071-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | * stdlib/os: add isAdmin * uint8 -> cuchar, assert isAdmin on Azure Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/pure/os.nim docs Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Address comments on #17012 * Raise on errors in #17012 * Check the result of FreeSid in #17012 * Change case in #17012 * Fix memory leak in #17012 * Address comments in #17012 Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* use lowercase --define switches (#17283)flywind2021-03-072-3/+3
|
* fix #17264 [backport:1.4] (#17266)flywind2021-03-051-0/+16
| | | | | * fix #17264 * fix vm * fix js and add tests
* follow up #17165 (#17262)flywind2021-03-043-54/+40
|
* reuse jsffi in json module (#17165)flywind2021-03-043-3/+10
| | | | | | | | | * remove unnecessary when statement * remove outdated codes * reuse jsffi * move js json coverage
* Added math.clamp for slice clamping (#17246)Jason Beetham2021-03-031-0/+11
| | | | | | | * Added math.clamp for slice clamping * Added inline to math.clamp * Cleaned up math.clamp + test
* fix #16384 and #17144 (#17126) [backport]flywind2021-03-031-218/+223
|
* https://github.com/nim-lang/Nim/pull/15826/files#r585368355 (#17233)Juan Carlos2021-03-031-1/+5
|
* RST heading improvements (fix #17091) (#17195)Andrey Makarov2021-03-021-0/+156
|
* re-enable disabled tests after #17173 (#17228)Timothee Cour2021-03-021-111/+75
|
* add overload `add(a: var string, b: openArray[char])` (#15951)Timothee Cour2021-03-011-120/+133
| | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* hashes: support object default hash (#17175)Timothee Cour2021-02-261-0/+46
|
* `std/options`: `$some(3)` is now `"some(3)"`, etc. (#17147)Timothee Cour2021-02-242-7/+7
| | | | | | | * std/options: $some(3) is now "some(3)", not "Some(3)", `$none(int)` is now `"none(int)"` instead of `"None[int]"` * fix tests * disable optionsutils
* remove deprecated stuff in unittest module (#17156)flywind2021-02-241-5/+18
| | | | | | | | | * remove unnecessary when statement * remove outdated codes * remove deprecated stuff in testament * fix
* wrapnils: add `??.` which returns an `Option` (#16931)Timothee Cour2021-02-241-17/+20
| | | | | | | * wrapnils: add option-like API with ??., isSome, get * fix test after rebase * cleanups * fix changelog * address comments regarding get vs unsafeGet
* fix #17159 items(cstring) works in VM (#17160)Timothee Cour2021-02-241-14/+87
| | | | | | | | | * fix #17159 items(cstring) works in VM * improve test coverage tests/stdlib/tcstring.nim; add helpers: whenRuntimeJs, whenVMorJs * document items(cstring) * address comments
* cleanup tests/stdlib/tstring.nim (#17158)Timothee Cour2021-02-241-98/+82
| | | | | | | * cleanup tests/stdlib/tstring.nim * cleanup tests/stdlib/tstring.nim * cleanup rest of test
* close #15563 add testcase (#17168)flywind2021-02-241-0/+18
| | | | | | | | | | | | | | | | | * remove unnecessary when statement * remove outdated codes * close #15563 * Update tests/typerel/t15563.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * address comments * tiny Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* add strbasics.strip (#16280)flywind2021-02-241-0/+126
|
* [stdlib] make cookies module modern (#17116)flywind2021-02-241-1/+6
| | | | | | * update cookies module * introduce sameSite.Default Co-authored-by: hlaaftana <10591326+hlaaftana@users.noreply.github.com>
* add enumutils.items for sparse enums, typetraits.SomeSparseEnum (#17080)Timothee Cour2021-02-231-0/+16
| | | | | | | * add enumutils.items for enum with holes * changelog * ref in lib.rst * use `type SomeSparseEnum* = (not Ordinal) and enum` instead of concept * address comment: rename back to enum with holes