summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix #17749 ignore SIGPIPE signals, fix nim CI #17748 (#17752)Timothee Cour2021-04-182-6/+28
| | | | | * fix #17749 SIGPIPE * fix for windows
* IC exposes typedesc implementation shenanigans (#17759)Andreas Rumpf2021-04-181-0/+15
| | | | | | * IC exposes typedesc implementation shenanigans; so I change system.default's definition to what it should have been to begin with * Update lib/system.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* fix range to unsigned conversion (#17754)Tanguy Cizain2021-04-171-0/+12
|
* 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-163-6/+36
|
* start using import {.all.} (#17736)Timothee Cour2021-04-161-0/+19
|
* ic navigator tests (#17735)Andreas Rumpf2021-04-161-0/+33
| | | * IC navigator: first basic test
* `import foo {.all.}` reboot (#17706)Timothee Cour2021-04-1619-0/+363
|
* follow up #17518 (#17726)flywind2021-04-151-0/+8
|
* follow up #17536 (#17727)flywind2021-04-151-1/+1
|
* Fix array's high & low return type for empty arrays (#17705)Tanguy Cizain2021-04-151-0/+7
| | | | | | | | | * fix array.high/low return type * Add test for empty array low return type Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Fix getCustomPragmaVal for some multi arg pragmas (#17723)Clyybber2021-04-151-0/+9
| | | | | * Fix getCustomPragmaVal for some multi arg pragmas * Bootstrap fix
* 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