summary refs log tree commit diff stats
path: root/tests/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* repr: fix rendering of `'big`, `=destroy` etc (#17624)Timothee Cour2021-04-031-0/+18
|
* enable syntax highlighting for inline code (#17585)Andrey Makarov2021-04-021-10/+63
| | | | | | | | | | | | | | | | | | | | | | | | | * enable syntax highlighting for inline code * finish '.. default-role' and preliminary '.. role' implementation * more compact check in dirRole * set :literal: as default role for *.rst * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * use whichRole for setting currRoleKind * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * rename rnGeneralRole -> rnUnknownRole Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* new `genAst` as replacement for `quote do` (#17426)Timothee Cour2021-04-022-0/+322
| | | | | | | | | | | | | | * new `macros.genAst`: fixes all issues with `quote do` * add changelog entry * add workaround for https://github.com/nim-lang/Nim/issues/2465#issuecomment-511076669 * add test for #9607 * add kNoExposeLocalInjects option * add test case for nested application of genAst * genAst: automatically call newLit when needed * allow skipping `{}`: genAst: foo * add test that shows this fixes #11986 * add examples showing mixin; add examples showing passing types, macros, templates * move to std/genasts * improve docs
* Fix #17017 (math edge cases) (#17588)konsumlamm2021-04-011-7/+38
| | | | | | | * Fix #17017 Add more test cases * USe signbit in example
* jsonutils: support cstring (including as Table key); improve docs (#16062)Timothee Cour2021-03-312-5/+9
| | | | | * jsonutils: support cstring (including as Table key); improve docs * changelog * un-disable a test now that #16061 was fixed
* add getPort to resolve Port(0) (#17559)Timothee Cour2021-03-301-2/+1
| | | | | | | | | * add getPort to resolve Port(0) * fixup * use getPort in examples + tests * address comments: do not re-export Port
* [std/uri]fix #17481 (#17568)flywind2021-03-291-0/+11
|
* RST: enable parsing of prefix roles (ref #17340) (#17514)Andrey Makarov2021-03-291-0/+41
|
* Add `hasClosure` to `std/typetraits` (#17501)flywind2021-03-291-0/+92
| | | | | | | | | | | | | | | | * fix nim js cmp fails at CT * Add `hasClosure` to `std/effecttraits` * type * Update changelog.md Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/std/effecttraits.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #14010(fix std/registry + arc) (#17551)flywind2021-03-291-0/+15
| | | | | | | | | | | | | * fix nim js cmp fails at CT * fix #14010 * Update tests/stdlib/tregistry.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tregistry.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Add a getter for all defined Sections in parsecfg (#15450)Ardek Romak2021-03-281-14/+9
|
* fix flaky tnetconnect which sometimes failed with: No route to host ↵Timothee Cour2021-03-271-2/+3
| | | | [OSError] (#17526)
* Fix #17199 (#17348)Clyybber2021-03-261-15/+27
| | | | | | | | | | | | | | | | | | | | | | * don't zero out in a move in the VM * Add testcases for #17199 * Update tests/arc/tarcmisc.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tests/vm/tissues.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Fix test failures * Fix test * Fix tests Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* fix RST parsing after option lists (#17442)Andrey Makarov2021-03-251-0/+49
|
* fix #17260 render `\` properly in nim doc, rst2html (#17315)Timothee Cour2021-03-241-2/+20
|
* fix #17325 linux 32bit CI; fix #17085 flaky test (#17469)Timothee Cour2021-03-241-1/+1
|
* [isolation]fix empty ref object bug (#17471)flywind2021-03-241-0/+8
| | | | | | | | | | | | | * fix nim js cmp fails at CT * [Minor]fix empty ref object for isolation * Update compiler/isolation_check.nim * Update compiler/isolation_check.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* fix #17490 (#17491)flywind2021-03-241-0/+11
|
* add algorithm.merge (#16182)flywind2021-03-231-1/+158
| | | | | | | | | * add merge to algorithm * Apply suggestions from code review * Update lib/pure/algorithm.nim * Apply suggestions from code review * Update changelog.md Co-authored-by: ee7 <45465154+ee7@users.noreply.github.com>
* fix #17458 tnetconnect.nim flaky (#17459)Timothee Cour2021-03-231-12/+16
| | | | | * fix tests * fix #17458
* refs #17292 fix `repr` with `do:` (#17449)Timothee Cour2021-03-231-0/+80
| | | | | * refs #17292 fix `repr` with `do:` * address comment
* fix #17454 (#17461)Timothee Cour2021-03-231-1/+4
|
* follow up #17391 add testcase (#17404)flywind2021-03-191-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Revert "make system random work in VM" * fix #17380 * attempt to fix bug * fix * better * fix * a bit * fix the leaks * revert * fix * better * follow up #17391 * fix * Update tchannels.nim * Update tests/stdlib/tchannels.nim * Update tchannels.nim
* followup #17398: `getTempDir`, `getConfigDir` now do not have trailing ↵Timothee Cour2021-03-181-3/+3
| | | | | | | DirSep (#17402) * followup #17398: `getTempDir`, `getConfigDir` now do not have trailing DirSep * fix test
* Rst test check messages (fix #17280) (#17338)Andrey Makarov2021-03-171-75/+125
|
* allow short-style rst references with symbols (#17372)Andrey Makarov2021-03-171-0/+25
|
* [std/channels]fix recv leaks(Part One) (#17394)flywind2021-03-172-3/+3
|
* fix #17383: json.%,to and jsonutils.formJson,toJson now works with ↵Timothee Cour2021-03-162-1/+35
| | | | | | | uint|uint64 (#17389) [backport:1.2] * fix #17383: json.%,to and jsonutils.formJson,toJson now works with uint|uint64 * fixup * fix for js
* Revert "make system random work in VM" (#17378)flywind2021-03-151-2/+0
|
* New channels implementation for ORC (#17305)flywind2021-03-122-0/+389
| | | | | | | * Update lib/std/channels.nim * Rename tchannel_pthread.nim to tchannels_pthread.nim * Rename tchannel_simple.nim to tchannels_simple.nim Co-authored-by: Mamy Ratsimbazafy <mamy_github@numforge.co>
* fix RST parsing when no indent after enum.item (fix #17249) (#17257)Andrey Makarov2021-03-121-0/+9
|
* refs #4347, add `ZZZ` and `ZZZZ` patterns for timezone offsets without ↵Miran2021-03-111-0/+4
| | | | colons (#17318)
* add typetraits.OrdinalEnum, enumutils.symbolName (#17281)Timothee Cour2021-03-101-0/+21
|
* fix #17275 (#17276)flywind2021-03-091-4/+1
|
* improve test coverage for isolation (#17297)flywind2021-03-082-16/+115
| | | | | * improve test coverage for isolation * a bit better