summary refs log tree commit diff stats
path: root/tests/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* jsonutils: fromJson forward opt param fix (#16612)inv20042021-01-061-0/+14
|
* Link the <fenv.h> header (#16597)konsumlamm2021-01-051-3/+2
|
* make cstrutils work in VM (#16590)flywind2021-01-051-2/+10
| | | | | * make cstrutils work in VM * more
* Improve documentation for complex (#16588)konsumlamm2021-01-051-6/+6
| | | | | | | | | | | | | * Improve documentation for complex Add missing doc comments * Add runnableExample Add links for principal values Optimize `-` Change var to let * Use std prefix for imports
* fix #9125 (#16582)flywind2021-01-051-4/+26
| | | | | | | | | | | | * fix #9125 * Update tests/stdlib/tmath.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * back Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Make tmath test more strict (#16593)Clyybber2021-01-051-13/+13
| | | | Don't use approximate equality when comparing numbers that are representable with perfect precision.
* merge tmath_misc.nim into tmath.nim (#16591)Timothee Cour2021-01-052-24/+13
|
* fix #16576: honor matrix in testament by making such tests non joinable (#16577)Timothee Cour2021-01-041-4/+6
| | | | | | | * refs #16576: honor matrix in testament by making such tests non joinable * add tests + misc fixes * fix test for i386 with -d:danger
* enable tmath tests for JS backend (#16562)flywind2021-01-041-6/+5
|
* Improve sequtils documentation (#16559)konsumlamm2021-01-041-4/+2
| | | | | | | * Improve sequtils documentation Uncomment assertions in tests * Use present tense
* Algorithm improvements (#16529)konsumlamm2021-01-021-2/+2
| | | | | | | | | | | | * Improve documentation for algorithm Remove unused import in algorithm tests Improve formatting * Reapply fix for reverse on empty openArray * Use 3rd person singular Add more explanations.
* fix #16061 (#16551)flywind2021-01-021-1/+6
|
* fix `is "closure"` (#16552)flywind2021-01-021-0/+9
|
* fix #16542 (#16549)flywind2021-01-021-1/+30
| | | * fix #16542
* refactor the tests of options (#16527)flywind2021-01-011-143/+182
|
* fix #16494 (#16513)flywind2021-01-011-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix #16494 * fix * fix * fix * fix * fix * fix performance * add comments * improve performance * Update lib/system.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/system.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tests/stdlib/tmath_misc.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tests/stdlib/tmath_misc.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* refactor cmpIgnoreStyle and cmpIgnoreCase (#16399)flywind2020-12-312-22/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * init * support strutils * more * better * Call len once per string/cstring * Change var to let * Compare ternary on first char * More appropriate param name * fix * better * one test * impl * more efficient * minor Co-authored-by: Clyybber <darkmine956@gmail.com>
* RST: improve line blocks (#16518)Andrey Makarov2020-12-311-4/+34
|
* Add math.copySign (#16406)flywind2020-12-301-1/+49
| | | | | * add math.copySign * fix + tests
* Added cmpMem export (#16484)Antonis Geralis2020-12-291-0/+15
| | | | | | | | | | | | | * added cmpMem export * updates * fix test * Tiny changelog change * Add a dot. Co-authored-by: Clyybber <darkmine956@gmail.com>
* improve turi.nim tests: js, vm; merge tdecodequery.nim (#16500)Timothee Cour2020-12-292-194/+181
| | | | | | | | | | | * improve turi tests: js, vm; merge tdecodequery.nim * improve test * add test in js, improve test * remove matrix: "--styleCheck:hint --panics:on" * fixup
* RST: fix directive with fields (#16490) (#16493)Andrey Makarov2020-12-291-0/+11
| | | | | | | * RST: fix directive with fields (#16490) * Update tests/stdlib/trstgen.nim Co-authored-by: Clyybber <darkmine956@gmail.com>
* use doAssert in tests (#16486)flywind2020-12-2830-563/+563
|
* follow #15860 clean cgi module (#16487)flywind2020-12-271-21/+9
| | | | | * follow #15860 clean cgi module * follow #15860 clean cgi module
* remove some noises in tests (#16448)flywind2020-12-2713-165/+128
|
* 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