summary refs log tree commit diff stats
path: root/tests/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* Fixes #16219, `hasArgOfName` ignoring argument sets. (#16233)Aditya Siram2020-12-031-0/+9
| | | | | | | | | | | | | | | * Fixes #16219, `hasArgOfName` ignoring argument sets. * Fix test and simplify ident traversal. * Moved test into a block and removed some boilerplate. * Fix some argument formatting. * use ..< * Change the preceding line too Co-authored-by: Clyybber <darkmine956@gmail.com>
* merge two parsecfg tests into one (#16237)flywind2020-12-032-76/+77
| | | | | | | | | | | | * try to fix #16206 * merge two parsecfg tests into one * Revert "fix" This reverts commit 668bdec2c499cf9967abfb7aad24975a04b092eb. * Revert "try to fix #16206" This reverts commit c399cc2153190299c9cbb0ad83f6ce85a7bbbb89.
* nimout now consistently uses nimoutCheck (#16189)Timothee Cour2020-12-011-0/+6
|
* experimental/diff: move isMainModule block to tests/stdlib/tdiff.nim (#16172)Timothee Cour2020-11-281-0/+73
|
* make megatest consistent with unjoined tests wrt newlines, honor newlines in ↵Timothee Cour2020-11-289-50/+54
| | | | | | | output spec (#16151) * fix megatest newlines * still allow missing trailing newline for now but in a more strict way than before
* move rest of tests to testament (#16140)flywind2020-11-276-1/+228
| | | | * move rest of tests to testament * Update tests/stdlib/tsums.nim
* tunidecode minor improvement (#16157)flywind2020-11-271-3/+2
|
* fix #14339, #13511, #14420: fixes limited VM support for addr (#16002)Timothee Cour2020-11-251-42/+50
| | | | | | | | | | | * fix #14339: fixes limited VM support for addr * strengthen test * reference bug #16003 * also fixes #13511 * also fixes #14420
* move tests to testament (#16101)flywind2020-11-2428-42/+2205
| | | | | | | | | * move tests to testament * minor * fix random * disable test random
* typeinfo minor improvement (#16083)flywind2020-11-231-0/+60
| | | | | | | | | * typeinfo minor improvement * minor * Update lib/core/typeinfo.nim * rename typeinfo
* fix #14056 (#16071)kemifl2020-11-231-2/+27
| | | fix #14056, incorporate review comments
* fix ropes format errors (#16106) [backport:1.0]flywind2020-11-231-0/+7
| | | | | | | * fix rope index * add testcase * fix ropes format
* fix rope index (#16100)flywind2020-11-231-0/+66
| | | | | * fix rope index * add testcase
* deques minor improvement (#16084)flywind2020-11-211-0/+111
|
* xmltree minor improvement (#16085)flywind2020-11-211-0/+85
|
* complex minor improvement (#16086)flywind2020-11-211-0/+108
|
* heapqueue minor improvement (#16088)flywind2020-11-211-0/+53
|
* alternative way to fix #16022 (#16064) [backport:1.4]flywind2020-11-201-1/+8
| | | | | | * alternative way to fix #16022 * add testcase for #16022 [backport:1.4]
* packedsets fix regression introduced in #15564 (#16060)Timothee Cour2020-11-202-0/+16
| | | | | * packedsets fix regression introduced in #15564 * add tests
* fix #16025 repr now consistent: does not insert trailing newline (#16034)Timothee Cour2020-11-192-34/+66
|
* fix #15934 and #15620 (#15938) [backport:1.4]Andreas Rumpf2020-11-152-0/+31
|\ | | | | | | * make workaround for #15934 and #15620 * add testcase for #9754
| * minorflywind2020-11-131-0/+4
| |
| * add testcase for #9754flywind2020-11-131-0/+2
| |
| * add testcaseflywind2020-11-121-0/+25
| |
* | targets: use cpp instead of c++ everywhere (was by far the most common) (#15961)Timothee Cour2020-11-141-1/+1
| |
* | Make IntSet a generic ordinal set OrdSet[A] (#15564)landerlo2020-11-132-65/+259
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make IntSet an ordinal set OrdSet[A: Ordinal] Backward compatibility with IntSet is maintained. IntSet is an alias for OrdSet[int] * move ordsets to new file, intsets exports it * ordset, move to lib/std folder * Fix `$` for ordsets and test cleanup * Fix ordsets compilation in doc example * Rename ordsets to packedsets
* | fix #15941 (#15948)flywind2020-11-131-0/+17
| | | | | | | | | | | | | | * fix #15941 * add testcase * update
* | make var string return var char w/ BackwardsIndex (#15461)hlaaftana2020-11-121-0/+7
| | | | | | | | | | | | | | | | * make var string return var char w/ BackwardsIndex fixes #14497 * work around VM bug * properly workaround again
* | fix #12726 Cannot take the compile-time sizeof Atomic types (#15928)Bung2020-11-121-0/+18
| | | | | | | | | | * fix #12726 Cannot take the compile-time sizeof Atomic types * fix for arch 32
* | Correct all eggs (#15906)Miran2020-11-101-1/+1
| | | | | | | | * "eg" is a misspelled "egg", "e.g." is "exempli gratia" * Also, "ie" is "i.e.".
* | rst: add support for markdown tables (#15854)Miran2020-11-101-0/+24
| | | | | | | | | | | | | | * rst: add support for markdown tables * change template into proc * don't create unnecessary `seq[string]`
* | follow #15874(add testcase for #15874) (#15893)flywind2020-11-101-0/+8
| |
* | fix adding empty sequence to HTTP headers (#15783)flywind2020-11-051-0/+27
| | | | | | | | | | * fix adding empty sequence to HTTP headers * add tests
* | fix #15663 (#15839) [backport:1.4]flywind2020-11-051-0/+7
| |
* | fix #15835 (#15838)flywind2020-11-041-0/+17
|/ | | | | * fix #15835 * add tests
* `ioutils` are moved to `fusion` (#15822)Miran2020-11-021-49/+0
|
* Handle BLOB column type in SQLite as binary data (#15681)Regis Caillaud2020-11-021-0/+50
| | | | | | * Fixed not handling blob correctly in sqlite * Fixed setLen commented by mistake * Added binary example as db_sqlite doc * Added tests for sqlite binary data
* fix #15815 (#15817)flywind2020-11-021-0/+16
|
* add testcase for #9091 (#15791)flywind2020-10-301-0/+36
| | | | | * add testcase for #9091 * more tests
* add tests for #7686 (#15771)flywind2020-10-291-0/+9
|
* fixes #15413 (#15768)Andreas Rumpf2020-10-291-0/+3
| | | | | | | * fixes #15413 * better hide it properly * see if this makes our list of important packages happy
* fixes #10456,#12928 issues when chaining templates to sortedByIt (#15734)shirleyquirk2020-10-271-0/+18
| | | | | | | | | | | | | | | * update c_malloc's to csize_t fix for broken --os:ios * I'm an idiot sorry * Create talgorithm.nim * workaround for #10456 I don't understand the intricacies of how lambdalifting and template expansions interact with lent, so i don't know how to fix the real problem, but this sidesteps whatever issue that is. * working test, use typeof rather than auto
* Add C function dup and dup2 posix to system/io (#15675)Regis Caillaud2020-10-271-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | * * Add handle to dup and dup2 posix as duplicate and duplicateTo in std/ioutils. * Added small test & changelog entry * Fixed import in tioutils removed when isMainModule * * Nest test inside block. Rename proc var -> let in captureStdout * Renamed tmpfile to iotuils.txt * Added block: # duplicate, duplicateTo * Improved docstring * Clean non-idiomatic code * Added runnable examples * rm 2 trailing space in expected output * Made syntax prettier * Runnable example: file in getTempDir() * Tmp -> Temp * Fixed runnableExamples on windows
* workaround #15713 disable freebsd tssl.nim (#15718)Timothee Cour2020-10-261-1/+3
|
* Fix #12410 (#15685)Clyybber2020-10-231-0/+13
| | | | | * Fix #12410, big thanks to @pmetras for this fix * Add testcase
* add tests for #15584 (#15619)n5m2020-10-182-0/+27
| | | | | | | | | | | | | | | | | * add test for #15584 * Rename userlocks.nim to trlocks.nim * add bug comment * improve cmd * reference bugfix, not bug * add test that runs rlocks * disallow joining joining with other test cases (e.g., a test case that invokes `RLock.initRLock()`) may cause this test to compile, when the goal is to test if these lines can be compiled in isolation
* terminal: fix fgColor/bgColor commands [backport] (#15554)alaviss2020-10-131-0/+8
| | | | | Since #8296, fgSetColor is no longer a global. These commands were probably left out from the change as an oversight, so some tests have been added to make sure this won't happen again.
* os: add overload copyFile*(source, dest: string, isDir = false) (#15537)Timothee Cour2020-10-111-0/+19
| | | | | * os: add overload copyFile*(source, dest: string, isDir = false) * renamed to copyFileToDir
* Fix #15493 - disable TLS emulation for NetBSD (#15494)Euan2020-10-051-2/+2
| | | TLS emulation was already disabled for FreeBSD due to the same issue.
* Fix #15452 - ip protocol not defined on NetBSD (#15453)Euan2020-10-011-1/+4
|