summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix SIGSEGV in httpclient response body (#16766)Daehee2021-01-221-0/+6
| | | | | | | | | * initialize httpclient response bodyStream; prevent SIGSEGV when getBody is false * Update lib/pure/httpclient.nim * Update lib/pure/httpclient.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Add testcase for #14880 (#16795)Clyybber2021-01-221-0/+10
|
* Testament small fixes (#16788)Juan Carlos2021-01-221-28/+0
| | | | | | | | | * ReSync with Devel * ReSync * Fix Deprecations, Convertion to itself, code style, etc * Fix Deprecations, Convertion to itself, code style, etc
* Add testcase for #5993 (#16789)Clyybber2021-01-221-0/+16
|
* fix #15628 (#16387)flywind2021-01-212-25/+36
| | | | | | | | | * done * Apply suggestions from code review * fixup Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Part-to-whole optimization (#16775)Clyybber2021-01-211-1/+46
|
* close #8015: const array indexing zeroes data in object variants at runtime ↵Timothee Cour2021-01-211-0/+57
| | | | (#16782)
* fix testament regression: installed testament works again with testament r ↵Timothee Cour2021-01-201-0/+9
| | | | | | | path (#16767) * fix testament regression: installed testament works again with testament r path * fixup
* fix noDecl => nodecl (#16760)Timothee Cour2021-01-202-1/+2
| | | | | | | * fix noDecl => nodecl * address comment * disable flaky tests/stdlib/thttpclient.nim on freebsd
* Reboot of #16195 (#16746)Clyybber2021-01-202-1/+159
| | | | | | | | | | | | | | | | | | | | | | | | | * fix #16185 * fix test * fix comment * fix comment * better approach * Add more tests and move sameLocation to injectdestructors * Better and more strict sameLocation * Small cleanup and preliminary spec clarification * Fix * Fix doc * Expand test Co-authored-by: Andrey R (cooldome) <ariabushenko@gmail.com>
* `--hintAsError` (#16763)Timothee Cour2021-01-201-0/+35
| | | | | | | * --hintAsError * add test, changelog * condsyms
* jsonutils.jsonTo: support opt (#16739)Timothee Cour2021-01-171-0/+3
|
* js: improve tests + some docs (#16727)Timothee Cour2021-01-163-262/+173
| | | | | | | | | | | * js: improve tests * _ * _ * _ * fixup
* close #10735 add testcase (#16690)flywind2021-01-151-0/+41
|
* Deprecate TaintedString (#15423)Juan Carlos2021-01-157-17/+17
| | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* Fix 16722 (#16730)cooldome2021-01-151-1/+43
| | | | | | | * fix #16722 * fix spacing * spacing
* followup for #16717: minimized example + improved comment (#16721)Timothee Cour2021-01-151-32/+44
|
* Add js BigInts (#16409)Juan Carlos2021-01-141-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | * Add BigInts * Renames tos plurals * Improve Stringifications * Update changelog.md Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * RunnableExamplerize * discard the discardable pragma * Several improvements from peer reviews, more docs * More doc, more test * More doc, more test * Better error message 'Error: usage of low is an {.error.} defined at jsbigints.nim' instead of just 'type mismatch JsBigInt' * is an overload, rename * proc to scare kids away * Update lib/js/jsbigints.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * https://github.com/nim-lang/Nim/pull/16409#discussion_r554365041 Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Transfer-Encoding:chunked tests (#16678)vabresto2021-01-141-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add tests and fix extra newlines in body * Fixes per comments * Slight rephrase per comments * Improvements per comments * Add getSocket to reduce test flakiness per comment * Remove unused lines from header * Add doc comment to getSocket per comment * Apply witchcraft to replace `discard Future` * Return HTTP 400 on bad encoding in request * Fix runnable example for getSocket * Fix import to fix runnable examples * Even more imports for the example * Better self documenting runnable example * Add missing import * Import from module with correct signature * Resolve port type mismatch
* fix #16706 (#16717) [backport:1.4]flywind2021-01-141-0/+37
|
* enable tests/stdlib/thttpclient.nim (#16710)Timothee Cour2021-01-141-5/+6
| | | | | * enable tests/stdlib/thttpclient.nim * disable windows, openbsd
* disable hint:processing in tests (#16713)Timothee Cour2021-01-142-0/+4
| | | | | * disable hint:processing in tests * fix test
* Fixes #16436 (#16695)Yuriy Glukhov2021-01-141-0/+23
| | | | | * Fixes #16436 * Comments addressed
* fix #16703; revert most of #16480; add tests/stdlib/tmimetypes.nim (#16711)Timothee Cour2021-01-131-0/+13
|
* revive PR #16320 (CRLF fix); fix #16308; Update openssl.nim (#16648)Timothee Cour2021-01-121-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update openssl.nim Fix issue # 16308 * Update openssl.nim These are also related to Issues [#16308](https://github.com/nim-lang/Nim/issues/16308) * Update openssl.nim * Add files via upload SSL PEM_read_RSAPUBKEY check * Delete topenssl_rsa_private_key.pem * Delete topenssl_rsa_public_key.pem * Delete topenssl.nim * Add files via upload * Update topenssl.nim This test makes me dizzy. Variables such as' PRSA 'must be declared in advance, otherwise they will run incorrectly. The argument uses a cString, and string also makes an error. * Update topenssl.nim ``` lhf@lhf-pc:/media/lhf/D$ cat -e ./topenssl.nim import std/wordwrap$ import openssl$ ``` * Update topenssl.nim * dos2unix tests/stdlib/topenssl.nim Co-authored-by: lihaifeng <lihaifeng@wxm.com>
* Improve uri.parseQuery to never raise an error (#16647)Mildred Ki'Lya2021-01-121-2/+1
| | | | | | | | | | | | | | | | | In case of malformed query string where there is `=` on the value, handle this character as part of the value instead of throwing an error. The following query string should no longer crash a program: key=value&key2=x=1 It will be interpreted as [("key", "value"), ("key2", "x=1")] This is correct according to latest WhatWG's HTML5 specification recarding the urlencoded parser: https://url.spec.whatwg.org/#concept-urlencoded-parser Older behavior can be restored using the -d:nimLegacyParseQueryStrict flag.
* close #10734 add testcase (#16692)flywind2021-01-121-0/+19
| | | | | | | * close #10734 add testcase * fix * fix
* 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