summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* rst indentation fixes (ref #17340) (#17715)Andrey Makarov2021-04-152-2/+196
|
* fix CI tests/errmsgs/tgcsafety.nim (#17721)Timothee Cour2021-04-141-1/+1
|
* simplify asyncfutures, asyncmacro (#17633)Timothee Cour2021-04-143-22/+33
|
* getCustomPragma is split up in more usable chunks (#11526)Arne Döring2021-04-141-3/+27
| | | | | | | | | | | | | | | | | * getCustomPragma is split up in more usable chunks * changelog entry * fix for style checks * shitty typedesc special casing * Add since annotation and remove typedesc comments * Fix typo * Revert since annotation because it breaks bootstrapping * Export getCustomPragmaNode conditionally * Reduce code duplication * Update since * Update lib/core/macros.nim * Apply suggestions from code review Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* type with same name in different scope now works (#17710)Timothee Cour2021-04-142-2/+114
| | | | * type with same name in different scope now works * fix tests/enum/tenum.nim which was wrong because it was affected by this bug
* megatest: allow duplicate file names, show compilation progress (#17713)Timothee Cour2021-04-132-0/+4
| | | | | * megatest: allow duplicate file names * megatest: show compilation progress
* 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>
* IC: added tcompiletime_counter test case (#17698)Andreas Rumpf2021-04-112-0/+39
|
* iterable[T] (#17196)Timothee Cour2021-04-111-0/+143
| | | | | | | | * fix failing test toSeq in manual which now works * changelog * reject proc fn(a: iterable) * add iterable to spec * remove MCS/UFCS limitation that now works
* 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
* refs #15667 improve invalid indentation errors, report when & where `=` ↵Timothee Cour2021-04-101-0/+58
| | | | | | | | | | | could be missing (#16397) * refs #15667 improve invalid indentation errors * also show line info where = is missing * add test * add more tests
* IC: added converter test case (#17688)Andreas Rumpf2021-04-092-0/+20
| | | | | * IC: added converter test case * IC: make converter example work
* add std/tasks (#17447)flywind2021-04-091-0/+506
|
* make repr handle setters `foo=` (#17683)Timothee Cour2021-04-091-0/+9
|
* IC: added basic test case for methods (#17679)Andreas Rumpf2021-04-092-0/+35
| | | | | * IC: added basic test case for methods * IC: better methods test
* 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>
* ensure the avr example keeps compiling (#17663)Andreas Rumpf2021-04-073-0/+31
| | | | | | | * ensure the avr example keeps compiling * Update tests/avr/thello.nim * now compiles properly
* fix #16898 #17621 (#17628)flywind2021-04-062-0/+46
| | | | | | * fix #16898 * fix #17621 * Update compiler/semtypes.nim
* ref #14873 (#17644)flywind2021-04-062-3/+7
| | | | | | | * ref #14873 * comment * Update lib/core/locks.nim
* close #17636 (#17643)flywind2021-04-0616-77/+62
|
* [nim-gdb] Fixed enums and flag output [ci skip] (#17634)Saem Ghani2021-04-052-3/+36
| | | | | | | Debugger works for enums again. Additionally, flags work better than before. Reworked object printer as well, but the approach needs much more work or has to be replaced all together. This is mostly to save the work and myself or someone else can revisit it.
* fix :number-lines: regression (#17639)Andrey Makarov2021-04-051-0/+10
|
* fix #16693: testament spec nimout too lax (#16698)flywind2021-04-0413-14/+38
| | | 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-032-2/+51
| | | | | | | * 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
|
* close #14806 (#17626)flywind2021-04-034-0/+12
| | | | | * close #14806 * tiny
* implement RFCs/294 ; disallow enum <=> enum conversion (#16351)Timothee Cour2021-04-032-6/+63
| | | | | | | | | | | * fix https://github.com/nim-lang/RFCs/issues/294 ; disallow enum <=> enum conversion * fix the runnableExamples that was the instigator of this RFC * legacy -d:nimLegacyConvEnumEnum * use -d:nimLegacyConvEnumEnum in important_package nimgame2 * add test for enum cast * improve changelog * add changelog: Changes affecting backward compatibility * cleanup changelog * fix changelog
* fix #17615(runnableExamples silently ignored if placed after some code) (#17619)flywind2021-04-021-0/+11
| | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* 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
* close #7875 add testcase (#17611)flywind2021-04-021-0/+22
| | | | | * close #7875 add testcase * fix
* Fix #17017 (math edge cases) (#17588)konsumlamm2021-04-011-7/+38
| | | | | | | * Fix #17017 Add more test cases * USe signbit in example
* close #6133 add testcase (#17605)flywind2021-04-011-0/+50
| | | | | * close #6133 add testcase * b
* close #9534 add testcase (#17607)flywind2021-04-011-0/+21
|
* fix #17190 `nimscript` now accepts arbitrary file extensions for `nim e ↵flywind2021-04-012-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | main.customext` (#17596) * fix #17190 * cah * merge * Update tnimscriptwithnimext.nim * Update tnimscriptwithmacro.nims * Apply suggestions from code review * Delete tnimscriptwithnimext.nim * Update tests/tools/tnimscriptwithmacro.nims * fix * fix * add a test * Apply suggestions from code review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Apply suggestions from code review * Update changelog.md Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* close #12684 add testcase (#17599)flywind2021-03-311-0/+7
|
* close #16786 (#17598)flywind2021-03-311-1/+35
|
* 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
* fix #17572 (#17586)Timothee Cour2021-03-311-0/+16
|
* fix #14585, fix #17589: access to static param now works (#17590)Timothee Cour2021-03-311-0/+56
|
* fix #12282 distinct now does not create erroneous copy in VM (#17594)Timothee Cour2021-03-311-0/+32
|
* fix #15617(fix compilation failure on -d:useMalloc --gc:none) (#17555)flywind2021-03-301-0/+6
| | | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* 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
* Fix void async in templates (#17562)Ardek Romak2021-03-301-0/+12
| | | | | | | | * Fix https://github.com/nim-lang/Nim/issues/16159 * Add test for async in template * Shorten the expression * Even shorter Co-authored-by: Clyybber <darkmine956@gmail.com>
* unify tuple expressions (#13793)Arne Döring2021-03-307-21/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unify tuple expressions * fix test * fix test * apply feedback * Handle empty tuples * Fix rendering named unary tuple * Protect static NimNode against stripping * Slightly less hacky * Revert "Slightly less hacky" This reverts commit 170c5aec0addc029f637afbc948700ca006b7942. * Slightly less hacky * Cleanup * Fix test * Fix another test * Add condsym * Rebase fallout * changelog: Move from compiler changes to language changes * Add stricter tests * Add empty tuple example to doc/astspec * Fix test Co-authored-by: Clyybber <darkmine956@gmail.com>
* [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
|