summary refs log tree commit diff stats
path: root/tests/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* fixes #17696 (#18276)flywind2021-06-161-11/+42
|
* httpclient.nim Fixes #14794 and an issue where content-header is not set on ↵Mark Pointing2021-06-141-1/+32
| | | | | | | | | | | | | | | | postContent (#18208) * Fixed missing newline after bound marker in mulipart post (#14794) and a problem where calling postContent with multipart data does not set content-length header. * Update lib/pure/httpclient.nim * Added comment outlining the reason for changes to httpclient.nim and added tests to ensure that multipart post has a newline at the end of the body, and that the content-length header is present. * Fixed typo in comments. * Removed redundant blank lines in thttpclient_standalone.nim. Co-authored-by: Mark Pointing <mark@futurepoint.com.au> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #9437(fix `re.replace` wrong behaviour) (#17546)flywind2021-06-101-3/+6
| | | | | * fix nim js cmp fails at CT * fix
* #18216 make moveDir work across partitions on windows (#18223)Fröhlich A2021-06-101-0/+45
| | | | | | | * return false if AccessDeniedError in tryMoveFSObject - fixes #18216 * add moveDir & moveFile tests * rename `isMoveDir` parameter to `isDir`
* avoid re-exporting options from std/wrapnils (#18222)Timothee Cour2021-06-101-0/+1
|
* change mimedb stroe stringtable to orderedtable (#18065)Bung2021-06-071-0/+1
| | | | | | | * change mimedb stroe stringtable to orderedtable * Update lib/pure/mimetypes.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* macros.treeRepr + friends: collapse SymChoice (#18072)Timothee Cour2021-06-051-0/+6
| | | | | | | * macros.treeRepr + friends: collapse SymChoice * make repr+friends work with invalid symchoice nodes * address comment
* add string-string tests for find and rfind (#18137)n5m2021-06-021-3/+98
| | | | | | | * add string-string tests for find and rfind * remove duplicate test cases * remove more redundant test cases
* docs: Latex generation improvements (#18141)Andrey Makarov2021-06-011-2/+2
| | | | | | | * docs: improve Latex generation * make it work on Windows + fix ] escaping * minor fixes with escapes and style
* jsonutils.toJson now serializes JsonNode as is by default (#18097)Timothee Cour2021-05-311-0/+22
| | | | | * jsonutils.toJson now serializes JsonNode as is (without deep copy nor treating it as a regular ref object) * JsonNodeMode
* add `os.getCacheDir` (#18126)Timothee Cour2021-05-311-0/+3
| | | | | | | * add `os.getCacheDir` * fixup * address comments
* fix #16256: nimout: <empty> should give error (vacuously true); improve a ↵Timothee Cour2021-05-315-133/+56
| | | | | | | | | | | | | | | | | | | few tests (#18089) * fix #16256: nimout: <empty> should give error (vacuously true); improve some tests * renamed: tests/stdlib/t9710.nim -> tests/misc/t9710.nim * improve tests * fix non-DRY tests * improve $nim_prs_D/tests/stdlib/t9091.nim * renamed: tests/stdlib/t9091.nim -> tests/misc/t9091.nim * fixup * address comment: doAssert => result.parseErrors
* improve fast returns of find and rfind (#18127)n5m2021-05-311-0/+28
|
* document macros.unpackVarargs (#18106)Timothee Cour2021-05-311-0/+50
| | | | | | | * deprecate macros.unpackVarargs * un-deprecate unpackVarargs and add docs+runnableExamples * update examples + tests with varargs[typed]
* hashes for refs should be an opt-in feature (#18098)Miran2021-05-301-0/+1
|
* Disable tasynchttpserver_transferencoding on FreeBSD (#18122)vabresto2021-05-291-0/+1
|
* fix #17456 flaky test tasynchttpserver_transferencoding (#18052)vabresto2021-05-281-23/+32
|
* close #18009 parseJson JInt vs JFloat; preserve -0.0 as JFloat to ↵Timothee Cour2021-05-231-1/+16
| | | | distinguish from 0.0 (#18067)
* docs: make inline markup more compatible with Markdown (#18053)Andrey Makarov2021-05-212-10/+67
| | | fixes https://github.com/timotheecour/Nim/issues/739
* jsonutils: add customization for toJson via `ToJsonOptions`; generalize ↵Timothee Cour2021-05-181-0/+13
| | | | | | | | | | | | | | | | | | | symbolName; add symbolRank (#18029) * jsonutils: add customization for toJson via `ToJsonOptions` * add enumutils.symbolRank * lookup table implementation for HoleyEnum * cleanup * changelog * fixup * Update lib/std/jsonutils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* follow-up #17930 - inline syntax highlighting (#18013)Andrey Makarov2021-05-161-0/+21
| | | | | * follow-up #17930 - inline syntax highlighting * make closure->nimcall
* fix #18007: std/json now serializes nan,inf,-inf as strings instead of ↵Timothee Cour2021-05-162-1/+43
| | | | | | | | | | | | | | | | | invalid json (#18026) * fix #18007: std/json now serializes nan,inf,-inf as raw strings instead of invalid json * fix roundtrip * fix tests * fix changelog * simplify * add runnableExamples * fix typo [skip ci]
* RST opt.list to have priority over def.list (#17845)Andrey Makarov2021-05-151-0/+26
|
* Revert "fix #14873 properly by skipping `abi` field in importc type ↵Andreas Rumpf2021-05-151-17/+1
| | | | | (#17944)" (#17992) This reverts commit 98c29c01eb91a0c6ce7da09380a272eebe6bca6f.
* refs #18011 disable some newly failing tests on cpp windows; refs #17946 ↵Timothee Cour2021-05-141-1/+1
| | | | increase timeout for tchannels (#18012)
* jsonutils: handle holey enum as regular enum, via ord (#17995)Timothee Cour2021-05-111-3/+3
|
* jsonutils: support set (#17994)Timothee Cour2021-05-111-0/+6
|
* improve std/tempfiles (#17920)Timothee Cour2021-05-111-10/+42
| | | | | | | | * improve std/tempfiles * fixup * fix windows * improve test * improve runnableExamples and tests * address comment
* fix #17467 1st call to rand is now non-skewed; allow seed == 0 (#17468)Timothee Cour2021-05-111-4/+27
| | | | | | | | | | | | | | | * fix #17467 1st call to rand is now non-skewed; allow passing 0 as seed * changelog + fallback * document behavior for seed == 0 * address comments * _ * fix tests, disable kdtree * re-enable kdtree with -d:nimLegacyRandomInitRand
* Revert "Fix parseUri to sanitize urls containing ASCII newline or tab ↵Andreas Rumpf2021-05-091-12/+0
| | | | | (#17967)" (#17984) This reverts commit f4dd95f3bee14b69caec63c3be984c4a75f43c8a.
* Fix parseUri to sanitize urls containing ASCII newline or tab (#17967)Beshr Kayali2021-05-091-0/+12
| | | | | | | | | | | | | | | | | | | * Fix parseUri to sanitize urls containing ASCII newline or tab * Fix ups based on review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Additional fix ups based on review - Avoid unnecessary `removeUnsafeBytesFromUri` call if parseUri is strict - Move some parseUri tests to uri module test file Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com> * Update changelog Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* testament :show duration also for failed tests; improve `tshould_not_work`; ↵Timothee Cour2021-05-082-1/+16
| | | | | | | | | | | mitigate #17946 tchannels timeouts (#17947) * refs #17946; refactor testament test summary, show test duration for failures; increase timeout tchannels * revert workarounds from https://github.com/nim-lang/Nim/pull/16698 and add allowPrefixMatch optional param to greedyOrderedSubsetLines * add test * workaround for yet another testament bug
* improve tbase64.nim (#17964)Timothee Cour2021-05-071-12/+6
|
* fix #14873 properly by skipping `abi` field in importc type (#17944)Timothee Cour2021-05-071-1/+17
| | | | | | | * fix #14873 properly by skipping `abi` field in importc type * add test * fix test for windows
* follow-up #17837: add `Console` for interactive sessions (#17930)Andrey Makarov2021-05-061-2/+15
| | | | | * follow-up #17837: add `Console` for interactive sessions * fix Latex
* highlite: fix #17890 - tokenize Nim escape seq-s (#17919)Andrey Makarov2021-05-031-0/+13
| | | | | | | | | * highlite: fix #17890 - tokenize Nim escape seq-s * Update tests/stdlib/thighlite.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* typo: nonexistant => nonexistent (#17918)Timothee Cour2021-05-023-8/+8
| | | | | * typo: nonexistant => nonexistent * fix test (ordering differs because of https://github.com/nim-lang/Nim/issues/17910)
* fix #17911 rawProc for cpp (#17912)Timothee Cour2021-05-012-4/+72
|
* Fix nim-lang/nimforum#285 - punctuation after URL (#17908)Andrey Makarov2021-05-011-0/+50
| | | | | * Fix nim-lang/nimforum#285 - punctuation after URL * keep only one leaf in a rnStandaloneHyperlink * add more complex URL
* close #16646; `since` now works with bootstrap nim post csources_v1 (#17895)Timothee Cour2021-04-301-1/+1
| | | | | | | * revive #16627 now that csources_v1 was merged * use dedent in rst.nim, refs https://github.com/nim-lang/Nim/pull/17257#discussion_r589025683 * fix test and improve rendering of a rst warning
* more strict RST inline markup parsing (#17827)Andrey Makarov2021-04-291-0/+161
| | | | | * more strict RST inline markup parsing * add test for unexpected bonus * introduce `roPreferMarkdown`
* [std/encodings]move to tests (#17866)flywind2021-04-291-0/+73
|
* [std/pegs] increase test coverage (#17871)flywind2021-04-271-4/+154
|
* fix gbk encodings on windows (#17843)flywind2021-04-261-0/+25
|
* move travis, appveyor, ci.yml.disabled to `unmaintained/` (#17828)Timothee Cour2021-04-242-8/+1
| | | | | | | * move travis, appveyor, ci.yml.disabled to unmaintained * update some mentions of travis, appevyor * fix test
* js generates spurious >>> on shr (#17767)Sivchari2021-04-211-0/+49
| | | | | * js generates spurious >>> on shr * Add shr arithmetic test * fix variables from const to let during testing
* add RST highlighting for command line / shells (also fixes #16858) (#17789)Andrey Makarov2021-04-211-8/+12
|
* close #9372 add std/tempfiles (#17361)flywind2021-04-211-0/+17
| | | | * close #9372 add std/tempfile
* privateAccess now works with ref | ptr (#17760)Timothee Cour2021-04-193-8/+120
|
* fix #17749 ignore SIGPIPE signals, fix nim CI #17748 (#17752)Timothee Cour2021-04-181-2/+21
| | | | | * fix #17749 SIGPIPE * fix for windows