summary refs log tree commit diff stats
path: root/tests/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* replace defer with try ... finally (#17753)flywind2021-04-171-2/+9
|
* fix nim CI following #17455 (same postmortem as #17721) (#17740)Timothee Cour2021-04-161-6/+2
|
* refs #17292 fix `repr`: `(discard)` now does't render as `discard` which ↵Timothee Cour2021-04-161-12/+38
| | | | | | | gave illegal code (#17455) * refs #17292 fix `repr` with (discard) * add tests * add more tests
* std/hashes: hash(ref|ptr|pointer) + other improvements (#17731)Timothee Cour2021-04-162-6/+22
|
* start using import {.all.} (#17736)Timothee Cour2021-04-161-0/+19
|
* rst indentation fixes (ref #17340) (#17715)Andrey Makarov2021-04-152-2/+196
|
* add number literal jsbigints.big (#17707)Timothee Cour2021-04-131-3/+3
|
* followup strformat PR. backslash escapes, tests, docs (#17700)shirleyquirk2021-04-121-2/+60
| | | | | | | | | | | | | | | | | | | | | | * Allow use of colons inside fmt allowing colons inside fmt by replacing the format specifier delimiter lets arbitrary nim code be run within fmt expressions. Co-authored-by: flywind <xzsflywind@gmail.com> * formatting,documentation,backslash escapes Adding support for evaluating expressions by special-casing parentheses causes this regression: `&"""{ "(hello)" }"""` no longer parses. In addition, code such as &"""{(if open: '(' else: ')')}""" wouldn't work. To enable that, as well as the use of, e.g. Table constructors inside curlies, I've added backslash escapes. This also means that if/for/etc statements, unparenthesized, will work, if the colons are escaped, but i've left that under-documented. It's not exactly elegant having two types of escape, but I believe it's the least bad option. * changelog * added json strformat test * pulled my thumb out and wrote a parser Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: flywind <xzsflywind@gmail.com>
* restyle RST option lists (#17637)Andrey Makarov2021-04-101-12/+23
| | | | | | | | | | | | | * WIP: restyle RST option lists * apply similar style to Latex * fix tests * minor visual tweaks * update tests * remove leftover comments
* add std/tasks (#17447)flywind2021-04-091-0/+506
|
* make repr handle setters `foo=` (#17683)Timothee Cour2021-04-091-0/+9
|
* further progress on rst roles & directives (fix #17646) (#17659)Andrey Makarov2021-04-081-0/+36
| | | | | | | * further progress on rst roles & dir-s (fix #17646) * fix documents according to the messages * fix bug 17 from #17340
* use sink and lent in deques (#17661)flywind2021-04-071-2/+51
| | | | | | | | | * use sink and lent in deques * Update lib/pure/collections/deques.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* ref #14873 (#17644)flywind2021-04-062-3/+7
| | | | | | | * ref #14873 * comment * Update lib/core/locks.nim
* fix :number-lines: regression (#17639)Andrey Makarov2021-04-051-0/+10
|
* fix #16693: testament spec nimout too lax (#16698)flywind2021-04-042-1/+6
| | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* fix rst option list at EOF (follow-up #17442) (#17638)Andrey Makarov2021-04-041-0/+2
|
* fix #14850: `repr` now correctly renders `do` (#17623)Timothee Cour2021-04-031-0/+49
| | | | | | | * fix #14850: `repr` now correctly renders `do` * add tests * fix test