summary refs log tree commit diff stats
path: root/tests/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* rst: fix bug 20 from #17340 (#18360)Andrey Makarov2021-06-261-0/+47
| | | and a leftover bug: priority of option list inside definition list
* enable VM tracing in user code via `{.define(nimVmTrace).}` (#18244)Timothee Cour2021-06-241-0/+31
| | | | | | | * enable VM tracing in user code via `{.define(nimVmTrace).}` * add vmutils.vmTrace * add vmTrace
* rst: allow comment to continue on second line (#18338)Andrey Makarov2021-06-241-0/+66
|
* Markdown: allow to end URL with balanced parenthesis (#18321)Andrey Makarov2021-06-231-0/+41
| | | | | | | | | | | | | * Markdown: allow to end URL with balanced parenthesis * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * apply suggestion * remove unnecessary if Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* followup #18318: simplify `dollarImpl` and add a test (#18330)Timothee Cour2021-06-221-0/+23
|
* close #13196 now that we have dragonbox (#18316)Timothee Cour2021-06-212-0/+22
|
* fixes #17768 [backport:1.4] (#18317)flywind2021-06-211-1/+8
| | | | | * fixes #17768 [backport:1.4] * tiny
* validate rst field for :number-lines:, :status: (#18304)Andrey Makarov2021-06-201-0/+12
|
* Raise IndexDefect when deleting element at out of bounds index (#17821)Heiko Nickerl2021-06-201-1/+31
| | | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Heiko Nickerl <mail@hnicke.de> Co-authored-by: Heiko Nickerl <heiko.nickerl@flipapp.de>
* docgen: move to shared RST state (fix #16990) (#18256)Andrey Makarov2021-06-201-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * docgen: move to shared RST state (fix #16990) * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * rename `cmdDoc2` to `cmdDoc` * fix (P)RstSharedState convention * new style of initialization * misc suggestions * 1 more rename * fix a regression Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* make privateAccess work with generic types and generic instantiations; fix a ↵Timothee Cour2021-06-192-0/+71
| | | | | SIGSEGV (#18260) Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* 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