summary refs log tree commit diff stats
path: root/tests/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* follow #15357 and move decodeQuery (#15860)flywind2020-12-271-0/+7
| | | | | | | | | * follow #15357 and move decodeQuery * solve problem one * minor * deprecate decodeData * add changelog and since * add testcase for decodeQuery
* RST: implement admonitions (#16438)Andrey Makarov2020-12-271-0/+49
|
* fix nim js cmp fails at CT (#16473)flywind2020-12-271-15/+21
|
* fix #16474 `unittest.check type1 is type2` gives CT error (#16476)flywind2020-12-271-0/+19
| | | | * fix #16474 * more tests
* add `euclDiv` and `euclMod` to `math` (#16414)flywind2020-12-231-0/+28
| | | | | | | | * add `euclDiv` and `euclMod` to `math` * use abs * Update lib/pure/math.nim Co-authored-by: Clyybber <darkmine956@gmail.com>
* strip minor improvement (#16444)flywind2020-12-231-0/+13
| | | | | | | * strip minor improvement * add more tests * Update tests/stdlib/tstrutils.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* O(1) concatenation of singly- and doubly linked lists. (#16362)Peter Salvi2020-12-201-1/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * O(1) concatenation of singly- and doubly linked lists. There is also new `toSinglyLinkedList` and `toDoublyLinkedList` functions for conversion from `openArray`s, similarly to `toHashSet` or `toTable`. * Add `sequtils` import to runnable examples with `toSeq`. * Added missing call to runnable examples. * Add .since annotation, changelog, and tests. * Rename `lists.concat` as an overload to `lists.append`. * Renamed `append` to `add` in lists. * Remove faulty `add` for `DoublyLinkedList`s. * Improved tests for lists. * `lists.add` moves the second list; added `lists.copy` for shallow copy. * More tests for `lists.add` and `lists.copy`. * More compact tests for lists with templates. * List concatenation with copying (`add`) and moving (tentatively `addMove`) * Renamed `addMove` to `addMoved`; renamed arguments according to the style guide. * Added extended example to `lists.copy`. * Corrected .since annotations to 1.6 * Add .since annotation, changelog, and tests. * Rename `lists.concat` as an overload to `lists.append`. * Renamed `append` to `add` in lists. * Remove faulty `add` for `DoublyLinkedList`s. * `lists.add` moves the second list; added `lists.copy` for shallow copy. * More tests for `lists.add` and `lists.copy`. * List concatenation with copying (`add`) and moving (tentatively `addMove`) * Renamed `addMove` to `addMoved`; renamed arguments according to the style guide. * Since declarations changed to (1,5,1). * Add .since annotation, changelog, and tests. * Rename `lists.concat` as an overload to `lists.append`. * Renamed `append` to `add` in lists. * Remove faulty `add` for `DoublyLinkedList`s. * `lists.add` moves the second list; added `lists.copy` for shallow copy. * More tests for `lists.add` and `lists.copy`. * List concatenation with copying (`add`) and moving (tentatively `addMove`) * Renamed `addMove` to `addMoved`; renamed arguments according to the style guide. * Changelog update. * Fix rebasing errors. * Self-adding with `lists.addMove` results in a cycle now. Added some extra tests.
* RST enumlist followup (#16382)Andrey Makarov2020-12-191-3/+39
| | | | | * fix matching of enumerator #) * RST: markdown list with auto-enumerator `1`
* active windows tests and use doAssert (#16395)flywind2020-12-181-11/+10
|
* fix cmpIgnoreStyle bug (#16392)flywind2020-12-181-0/+11
|
* use hexchar in stdlib (#16290)flywind2020-12-171-0/+27
|
* improve tstrutils: test c, cpp, js, vm; cleanups (#16357)Timothee Cour2020-12-152-676/+689
| | | | | | | * renamed: tests/stdlib/tstrutil.nim -> tests/stdlib/tstrutils.nim * improve test * enable tstrutils for js, vm
* Adds toSet to create sets from iterables (#16276)Jason Beetham2020-12-141-0/+14
|
* doc/rst2html: some few fixes for enumerated and bullet lists (#16295)Andrey Makarov2020-12-141-0/+138
| | | | | | | | | | | | * fix bullet/enumarated lists with many blank lines * fix enumerated list parsing * fix parse failure when next line after list empty * implement arbitrary start of enumerator * check that enumerators are in order * remove redundant start=x if x=1 or a * add some doc on implemented features * update start in rst_examples.rst * allow upper-case letters + more docs
* testament: error instead of silently ignore invalid targets; remove ↵Timothee Cour2020-12-143-3/+3
| | | | | | | | | | | pointless alias target vs targets; document matrix; DRY (#16343) * testament: error instead of silently ignore invalid targets * s/target/targets/ * fix test; refs #16344 * address comments * Update testament/specs.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* add testcase for #15937 (#15933)Bung2020-12-131-0/+6
| | | | | | | | | | | | | * test for issue #15624 and PR #15915 for patch #13823 * Update thashes.nim no need mention PR #15915, fixed in https://github.com/nim-lang/Nim/pull/15937 * rebase to devel(issue maybe fixed), ignore ouputs * Apply suggestions from code review Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* Added strscans.scanTuple (#16300)Jason Beetham2020-12-121-0/+51
| | | | * Added since and changelog
* improve tests for collections (#16328)Timothee Cour2020-12-124-115/+177
| | | | | | | * improve tests for collections * remove remaining code blocks in deques.nim * improve runnableExamples
* add math.isNaN (#16179)Timothee Cour2020-12-111-5/+26
| | | | | | | * add math.isNaN * isNaN now works with --passc:-ffast-math; tests * Update lib/pure/math.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* enable tests for random (#16297)flywind2020-12-101-34/+41
|
* unittest: use defines instead of env vars (#16165)Timothee Cour2020-12-102-6/+1
| | | | | | | | | * unittest: use defines instead of env vars * use defines in testament * fixup Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Added Python to highlite module. (#16286)Xabier Bello2020-12-081-4/+20
| | | | | | | | | | | * Added Python to highlite module. * Added the keywords for Python * Refactored the 'pythonLikeNextToken' into 'nimNextToken': - `lang` property added to GeneralTokenizer object, is set in `getNextToken`. - `nimNextToken` accepts `keywords` parameter, used for languages different from Nim. - Multiline comment available only for `langNim`.
* fix #16206 (#16207)flywind2020-12-061-17/+72
| | | | * better docs and tests * a bit better only clean trailing whitespace
* RST tables: fix latex col number; allow less than three of `=` (#16040)Andrey Makarov2020-12-041-4/+182
|
* add collect with infered init, refs #16078 fixes #14332 (#16089)Antonis Geralis2020-12-031-3/+19
| | | | * changelog * add testcase, fixes #14332
* add support for parsing chars in `scanf` macro (#16240)Miran2020-12-031-1/+18
|
* 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
| |