summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* attempt to fix #16374 (#17232)flywind2021-03-021-0/+38
| | | | | | | | | * remove unnecessary when statement * remove outdated codes * attempt to fix #16374 * fix
* fixes #17198, DFA failure on large case stmts (#17210)Saem Ghani2021-03-021-0/+32
| | | | | | This alters the DFA control flow graph generation for case statments. Gotos are now generated as a chained link, this ensures that evaluation of variant branches collapses as early as possible, without hitting the 2k call limit.
* close #5342 add testcase (#17230)flywind2021-03-021-0/+23
| | | | | | | | | * remove unnecessary when statement * remove outdated codes * close #5342 add testcase * update the example
* `--nilseqs` is now a deprecated noop (#17211)Timothee Cour2021-03-016-8/+7
| | | | | * --nilseqs is now a deprecated noop * fix tests; fix: future => sugar
* fixes #17173 (#17213)Andreas Rumpf2021-03-011-0/+10
| | | | | | | | | | | | | | | | | | | | | | * fixes #17173 * add testcase (#17214) * Apply suggestions from code review * fix for newruntime * Apply suggestions from code review * Update lib/system.nim * Update lib/system.nim * Update lib/system.nim Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com> Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>
* add overload `add(a: var string, b: openArray[char])` (#15951)Timothee Cour2021-03-012-133/+145
| | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix code-block test bugs: fix #17183, fix ↵Timothee Cour2021-02-261-0/+10
| | | | | | | https://github.com/timotheecour/Nim/issues/620 (#17184) * fix code-block test bugs: fix #17183, fix https://github.com/timotheecour/Nim/issues/620 * cleanup
* 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-243-10/+10
| | | | | | | * 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
* asyncjs: add `then`, `catch` for promise pipelining (#16871)Timothee Cour2021-02-243-18/+87
| | | | | | * asyncjs: add then * improve tests, changelog, API * fix cryptic windows error: The parameter is incorrect * address comments
* 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
* fixes #17170 (#17171)Andreas Rumpf2021-02-241-0/+34
|
* 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-242-30/+87
| | | | | | | | | * fix #17159 items(cstring) works in VM * improve test coverage tests/stdlib/tcstring.nim; add helpers: whenRuntimeJs, whenVMorJs * document items(cstring) * address comments
* close #14581 add testcase (#17169)flywind2021-02-241-0/+25
| | | | | | | * remove unnecessary when statement * remove outdated codes * close #14581
* 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>
* new-style concepts implementation, WIP (#15251)Andreas Rumpf2021-02-244-3/+109
| | | | | | | | | | | | | * fixes #15210 [backport:1.2] * make tests green * make ordinal work * makes Swapable test compile * make Indexable example work * concepts: 'self' is now 'Self' * concepts: make Dictionary example compile * document the new concept implementation * concepts: make typeDesc work properly * concepts: allow documentation comments (d'oh)
* 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
* remove tests/deps/ (#17132)Timothee Cour2021-02-2342-27264/+11
| | | | | | | | | * remove tests/deps/ * fix tests * fix tests/manyloc/keineschweine/lib/zlib_helpers.nim * fixup
* Fixes #17039 - ldObj checks node/nodeAddr access (#17123)Saem Ghani2021-02-231-0/+10
| | | | | | Checked field expressions, such as an object variant field access results in occasionally broken address analysis crashing the VM. This guard added here mimics guarded access in ldObjAddr as well. This is to prevent a crash, while a fix is devised.
* add io.readChars overload (simpler, less error prone) (#16044)Timothee Cour2021-02-221-0/+37
| | | | | | | | | | * add simpler to use readChars overload * use new readChars overload * Update lib/wrappers/openssl.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: flywind <xzsflywind@gmail.com>
* Improve the ropes module (#17145)konsumlamm2021-02-221-54/+83
| | | | | | | | | | | | | | * Improve ropes module Improve wording Update runnableExamples Add index bound check for `[]` Minor format changes * Update tests/stdlib/tropes.nim Run on C & JS target Test in VM Add tests for `[]`
* fix #15215 (#17142)rockcavera2021-02-221-0/+22
| | | | | | | | | | | | | | | | * fix 15215 * fix test * end line * Update tests/stdlib/tnetconnect.nim Co-authored-by: flywind <xzsflywind@gmail.com> * Update lib/pure/net.nim Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* when statements branches exit early (#17143)Saem Ghani2021-02-222-0/+71
| | | | | When statement branches exit early outside of nimvm. In nimvm it seems that all sides of the branches must be evaluated as the code gen happens at a later stage, this remains intact.
* [JS + docs] improve std/monotimes module (#17103)flywind2021-02-221-1/+5
|
* testament: support disabled:osx as alias to disabled:macosx (#17124)Timothee Cour2021-02-222-2/+2
|
* make rst.nim use object variant (#17138)Andrey Makarov2021-02-221-0/+5
| | | | | | | * make rst.nim use object variant * add workaround * fix mistake
* fix #17118 (#17119) [backport:1.2]flywind2021-02-221-18/+20
| | | | | * fix js unsigned integer * Use `std` prefix for standard library modules * fix #17118
* make copySign for js consistent with other backends (#16609)Timothee Cour2021-02-222-29/+18
| | | | | | * make copySign work more robustly in js * improve tests * improve tests/vm/tcastint.nim
* remove unnecessary when statement (#17135)flywind2021-02-211-1/+10
|
* move prelude so that `include std/prelude` also works (#17110)Timothee Cour2021-02-201-0/+14
| | | | | * move prelude so that `include std/prelude` also works * add test
* Improve the strformat module (#17106)konsumlamm2021-02-201-512/+498
| | | | | | | | | | | | | | | | | | | | | | * Improve the strformat module Improve documentation Use runnableExamples * Fix overflow error for low(int64) Add test * Use assert in runnableExamples * Improve tstrformat Put tests in proc & test VM Put tests in blocks Add c, js targets * Use doAssert in tests * Disable JS & VM tests
* enable bsd for tsetutils; improve setutils API (#17098)Timothee Cour2021-02-201-2/+4
|
* stricter checks for RST headlines (#17089)Andrey Makarov2021-02-201-4/+20
|
* uri: document removeDotSegments, add tests, show failure modes (#17064)Timothee Cour2021-02-201-8/+1
| | | | * uri: document removeDotSegments, add tests, show failure modes * address comments
* Ref #12700 add testcase (#17096)flywind2021-02-191-1/+9
| | | | | | | * fix js unsigned integer * better * ref #12700 add testcase
* fixes #17085 [backport:1.2] (#17101)Andreas Rumpf2021-02-191-0/+22
|
* close #13859; add testcase (#17099)flywind2021-02-191-0/+19
| | | | | | | * fix js unsigned integer * better * close #13859; add testcase
* system/excpt: let the OS handle termination on signal (#16712)alaviss2021-02-191-0/+20
|
* Add setutils.complement, setutils.fullSet (#17066)Jason Beetham2021-02-181-7/+27
|
* fix stringify unsigned integer in JS and JS VM (#17086)flywind2021-02-181-0/+28
| | | | | * fix js unsigned integer * better
* [nodejs backend] paramStr, paramCount (#17082)flywind2021-02-181-0/+11
|
* fix #17076 (#17081)flywind2021-02-181-3/+25
|
* add -d:nimStrictMode in CI to keep code from regressing; fixes ↵Timothee Cour2021-02-171-0/+2
| | | | ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)
* fix math.frexp function signature (#16725)flywind2021-02-171-3/+10
|