summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* add typetraits.OrdinalEnum, enumutils.symbolName (#17281)Timothee Cour2021-03-101-0/+21
|
* close #9440 add testcase (#17316)flywind2021-03-091-0/+52
|
* close #16607 add testcase (#17317)flywind2021-03-091-0/+24
|
* fixes #11225; generic sandwich problems; [backport:1.2] (#17255)Andreas Rumpf2021-03-094-0/+30
| | | | | * fixes #11225; generic sandwich problems; [backport:1.2] * progress * delegating these symbols must be done via 'bind'
* fix #17275 (#17276)flywind2021-03-091-4/+1
|
* fix #13491 #17279 runnableExamples now don't get lost in translation (#17282)Timothee Cour2021-03-091-0/+25
| | | | | * fix #13491 runnableExamples rendering * fix a runnableExamples thanks to this bugfix
* 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>
* fix #17267 (#17273)flywind2021-03-071-0/+6
| | | | | | | | | | | | | | | | | * remove unnecessary when statement * remove outdated codes * reuse jsffi * move js json coverage * fix #17267 * address comments * Update compiler/main.nim * Update tests/threads/tjsthreads.nim
* use lowercase --define switches (#17283)flywind2021-03-076-10/+10
|
* Fix #16437 (#17277)Clyybber2021-03-064-16/+53
| | | | | | | * Fix #16437 * Fix * Small cleanup
* fix #17264 [backport:1.4] (#17266)flywind2021-03-051-0/+16
| | | | | * fix #17264 * fix vm * fix js and add tests
* Remove support for named procs with sugar.=> (#17220)konsumlamm2021-03-051-8/+2
| | | | | | * Add docs & tests for named procs with sugar.=> * Remove support for named procs in sugar.=> * Resolve conflict * Fix test
* 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
* deprecate newruntime (#17245)flywind2021-03-0412-12/+12
| | | | | | * deprecate newruntime * tests * Update compiler/commands.nim
* followup #16871 asyncjs.then: allow pipelining procs returning futures (#17189)Timothee Cour2021-03-043-0/+22
| | | | | | | | | | * followup #16871 asyncjs.then: allow pipelining procs returning futures * rename test files where they belong * fix tests * tests for then with `onReject` callback * rename test file containing fail to avoid messing with grep * address comments * cleanup * un-disable 1 test
* 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
|
* fix #17177 (#17243)flywind2021-03-031-0/+10
| | | | | | | | | * remove unnecessary when statement * remove outdated codes * fix #17177 * add testcase
* 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 `[]`