summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* RST: implement internal targets (#16614)Andrey Makarov2021-01-111-0/+158
|
* close #9901 add testcase (#16662)flywind2021-01-111-0/+18
| | | | | * close #9901 add testcase * follow advice
* close #9655 add testcase (#16683)flywind2021-01-111-0/+30
|
* close #7097 add testcase (#16682)flywind2021-01-111-0/+38
|
* fix #13517 (#16681)flywind2021-01-111-0/+14
|
* fix negative nan (#16628)flywind2021-01-111-2/+14
|
* fix #16555, fixes #16405: len, high honors '\0' for cstring in vm (#16610)Timothee Cour2021-01-112-3/+49
|
* fix #16651 (#16658)cooldome2021-01-111-0/+24
| | | | * fix #16651
* fix #16650 (#16660)flywind2021-01-101-7/+12
|
* Httpclient improvements (#15919)Antonis Geralis2021-01-101-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow passing Uri instead of strings * Teach httpclient about 308 * Deprecate request proc where httpMethod is string * More use of HttpMethod enum Also fix handling of 308, I forgot to add the hunk to the previous commit. * Well behaved redirect handler * Also remove Transfer-Encoding * Removed unused proc * Secure redirection rules Strip sensitive headers for cross-domain redirects. * Allow httpMethod to be a string again This way unknown http verbs can be used without any problem. * Respect user-specified Host header * Missed multipart argument. * Try another method * add changelog * Fix hidden deprecation warning, parseEnum failing * This is wrong * Have to do it manually, parseEnum is not suitable * Review comments * update Co-authored-by: LemonBoy <thatlemon@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* close #4834 add testcase (#16649)flywind2021-01-091-0/+17
|
* close #1550 add testcase (#16640)flywind2021-01-081-0/+20
|
* minor fix (#16624)rockcavera2021-01-071-1/+1
|
* Implements streams for sockets (#15729)PMunch2021-01-071-0/+64
|
* oids: switch from PRNG to random module (#16203)flywind2021-01-071-0/+6
| | | | | | | * switch from PRNG to random module * fix the regression * comments + tests * runnableExamples * make oids better
* add math.signbit (#16592)flywind2021-01-071-0/+10
|
* Jsonutils: pass opt for object in object (#16615)inv20042021-01-071-0/+6
| | | | | * jsonutils: fromJson forward opt param fix * jsonutils: object in object test + fix: opt pass
* [backport 1.0] add backend support for js bigint (#16606)Timothee Cour2021-01-061-0/+58
| | | | | | | | | | | | | * add backend support for js bigint * cleanup * add tests * add -d:nimHasJsBigIntBackend * cleanup * more tests
* jsonutils: fromJson forward opt param fix (#16612)inv20042021-01-061-0/+14
|
* fix #16516 method dispatch for sink args (#16594)cooldome2021-01-061-0/+33
| | | | | | | * fix #16516 * fix comment * Trigger build
* 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-043-4/+21
| | | | | | | * refs #16576: honor matrix in testament by making such tests non joinable * add tests + misc fixes * fix test for i386 with -d:danger
* make --gc:arc --exceptions:quirky work again [backport:1.4] (#16583)Andreas Rumpf2021-01-044-5/+25
| | | | | * make --gc:arc --exceptions:quirky work again [backport:1.4] * fixes #16404 [backport:1.4]
* Add test for static proc/lambda params (#16584)Clyybber2021-01-041-0/+16
|
* fix #16499 (#16514)flywind2021-01-041-1/+1
|
* 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
* fix #12311 (#16578)flywind2021-01-041-0/+7
|
* Make test independent of repo location (#16571)Clyybber2021-01-031-3/+1
| | | | | * Make test independent of repo location * Fix differently
* Revert "Make config processing order test more robust" (#16561)flywind2021-01-031-1/+1
| | | This reverts commit cf714c129f7dd598863d1cc588e685df2438c658.
* Make config processing order test more robustClyybber2021-01-021-1/+1
|
* fix #16526 run config.nims before foo.nim.cfg (#16557)Timothee Cour2021-01-026-0/+19
| | | | | * fix #16526 run config.nims before foo.nim.cfg * add test
* 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
* big steps torwards an efficient, simple IC implementation (#16543)Andreas Rumpf2021-01-021-1/+1
| | | | | | | | | | | | | | | | | | | * reworked ID handling * the packed AST now has its own ID mechanism * basic serialization code works * extract rodfiles to its own module * rodfiles: store and compare configs * rodfiles: store dependencies * store config at the end * precise dependency tracking * dependency tracking for rodfiles * completed loading of PSym, PType, etc * removed dead code * bugfix: do not realloc seqs when taking addr into an element * make IC opt-in for now * makes tcompilerapi green again * final cleanups Co-authored-by: Andy Davidoff <github@andy.disruptek.com>
* fix #14340 (#16386)Timothee Cour2021-01-011-0/+17
|
* 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-313-38/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* follow #16505 move and active tests (#16508)flywind2020-12-302-30/+26
| | | | | * fix printing negative zero in JS backend * move tests
* nim-gdb.py fixes mostly for nimsuggest debugging (#16479)Saem Ghani2020-12-302-20/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These fixes were primarily developed to assist in nimsuggest debugging. There is nothing intentionally specific done for nimsuggest, but beyond the automated tests all practical testing was done with nimsuggest. Undoubltedly these will also assist in other debugging scenarios. The current nim-dbg.py script was broken in a few ways: - failed to provide detailed value information for common types (see below) - was not passing existing tests - could not produce type summary information Broken types now working somewhat better: - sequences with ref types like strings - sequences with value types like ints - arrays with ref types like strings - tables with int or string keys Other improvements: - slightly more test coverage Future considerations: - this, data used by it, should be something the compiler can generates - account for different memory layouts ([arc/orc differ](https://github.com/nim-lang/Nim/pull/16479#issuecomment-751469536)) Attempts at improving nim-gdb.py More tests, few fixes for seq and type printing Tables debugging fixed added further tests Fixed type printing