summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* [nim check]fix #17460 (#17569)flywind2021-03-291-0/+19
|
* [os:standalone]fix #14011 (#17564)flywind2021-03-292-0/+28
|
* added nkError to the AST (#17567)Andreas Rumpf2021-03-291-1/+1
| | | | | | | | | | | | | * added nkError to the AST * Update lib/core/macros.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update compiler/ast.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* 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>
* fixes #17437 - crash where error reporting > 1 (#17547)Saem Ghani2021-03-291-0/+22
| | | | | | | | | | | * fixes #17437 * Fix bug reference comment Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * [skip ci] describe why we have hasError Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* 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>
* close #9622 add testcase (#17557)flywind2021-03-291-0/+30
| | | | | * fix nim js cmp fails at CT * close #9622 add testcase
* Add a getter for all defined Sections in parsecfg (#15450)Ardek Romak2021-03-281-14/+9
|
* add testcase for #9466 (#17538)flywind2021-03-281-0/+28
|
* followup custom literals (#17500)Timothee Cour2021-03-273-18/+80
|
* close #5792 with testcase (#17536)flywind2021-03-271-0/+17
|
* close #7012 add testcase (#17537)flywind2021-03-271-0/+7
|
* nnkArglist => nnkArgList + special case stylecheck:error (#17529)Timothee Cour2021-03-273-4/+4
| | | | | * nnkArglist => nnkArgList * special case stylecheck:error
* fix flaky tnetconnect which sometimes failed with: No route to host ↵Timothee Cour2021-03-271-2/+3
| | | | [OSError] (#17526)
* close #17157 add testcase (#17531)flywind2021-03-271-0/+6
|
* Fix #17199 (#17348)Clyybber2021-03-262-15/+59
| | | | | | | | | | | | | | | | | | | | | | * 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>
* added a 'koch ic' command for easier adhoc testing of IC (#17508)Andreas Rumpf2021-03-261-1/+0
| | | | | | * added a 'koch ic' command for easier adhoc testing of IC * IC: progress * IC: enable generics test * make tests green
* close #15696 (#17518)flywind2021-03-251-0/+25
|
* fix RST parsing after option lists (#17442)Andrey Makarov2021-03-251-0/+49
|
* custom integer literals bugfixes (#17499)Andreas Rumpf2021-03-241-0/+3
| | | | | * custom integer literals bugfixes * make nimsuggest compile again
* custom integer literals (#17489)Andreas Rumpf2021-03-244-26/+160
| | | | | | | * user defined integer literals; refs #17020 * updated renderer.nim * use mlexerutils helper * imported all test cases from https://github.com/nim-lang/Nim/pull/17020 * final grammar updated
* 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-242-2/+13
|
* make unary minus part of number literals, refs #17020 (#17488)Andreas Rumpf2021-03-241-0/+76
| | | | * make unary minus part of number literals, refs #17020 * fixes regression
* [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>