summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix #17836 (typed macro isNil for proc params) (#17841)Saem Ghani2021-04-251-0/+15
| | | thanks @alaviss for the test
* `--usenimcache` (implied by `nim r main`) now caches some compile options to ↵Timothee Cour2021-04-252-12/+39
| | | | | | | | | | | avoid recompiling when project was previously compiled with such options. (#17829) * `--usenimcache` (implied by `nim r main`) now caches some compile options to avoid recompiling when project was previously compiled with such options. * works * add test * changelog * use std/with
* add colon (#17834)flywind2021-04-241-1/+1
|
* move travis, appveyor, ci.yml.disabled to `unmaintained/` (#17828)Timothee Cour2021-04-245-15/+3
| | | | | | | * move travis, appveyor, ci.yml.disabled to unmaintained * update some mentions of travis, appevyor * fix test
* `typeof(voidStmt)` now works (#17807)Timothee Cour2021-04-231-0/+61
| | | | | | | | * `typeof(voidStmt)` now works * remove typeOrVoid * add condsyms, and reference cligen https://github.com/c-blake/cligen/pull/193 * fixup * changelog [skip ci] * fixup
* add `--processing:dots|filenames|off` to customize `hintProcessing` (#17817)Timothee Cour2021-04-231-1/+1
|
* fix #17812 (repr fails to compile with ARC/ORC) (#17816)flywind2021-04-221-0/+29
|
* 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
* fix #7535(Poor error message for spawn when a procedure (without calling ↵flywind2021-04-211-0/+11
| | | | it)) (#17774)
* add RST highlighting for command line / shells (also fixes #16858) (#17789)Andrey Makarov2021-04-211-8/+12
|
* getCustomPragmaVal priority/override fixes (#17725)Clyybber2021-04-211-0/+10
| | | | | | | | | * Adhere left-to-right rule for custom pragma priority * Improve error message for no custom pragmas * custom pragmas on var/let sym take priority over its type ones * Workaround & bug
* `--filenames:abs|canonical|legacyRelProj` for filenames in compiler msgs ↵Timothee Cour2021-04-211-1/+1
| | | | | | | (replaces `--listfullpaths:on|off`) (#17746) * use canonicalImport for filename_magicSauce * --filenames:abs|canonical|magic * rename: magic => legacyRelProj
* close #9372 add std/tempfiles (#17361)flywind2021-04-211-0/+17
| | | | * close #9372 add std/tempfile
* unit separator (#17730)Andreas Rumpf2021-04-202-4/+4
| | | | | * use the ASCII Unit Separator so that error messages can be handled precisely by the tooling * updated testament
* close #9691 and close #10913('spawn'ed function cannot have a 'typed' or ↵flywind2021-04-202-0/+29
| | | | 'untyped' parameter) (#17775)
* fix https://github.com/nim-lang/RFCs/issues/311 remove unary slice (#16714)Timothee Cour2021-04-192-6/+7
|
* IC navigator: added support for include files (#17784)Andreas Rumpf2021-04-193-2/+33
| | | | | | | | | | | | | | | | | * ic fixed navigator crash when track wrong/missed Also fixed an issue with getNimcacheDir not observing the outDir. * closer, but not sure how to test[skip ci][ci skip] * IC navigator: added support for include files * update * make posix happy via expandFilename * update Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
* fix #12521(type alias for openArray) (#17593)flywind2021-04-191-0/+26
| | | | | | | * fix nim js cmp fails at CT * fix #12521 * address comments
* privateAccess now works with ref | ptr (#17760)Timothee Cour2021-04-194-10/+122
|
* 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