summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* clean up SOME pending/xxx/issue link comments (#21826)metagn2023-05-1121-125/+82
| | | | | * clean up SOME pending/xxx/issue link comments * great
* make ORC threadlocal, take two (#21818)Andreas Rumpf2023-05-102-2/+2
| | | | | * ORC: make rootsThreshold thread local [backport] * fixes the regression
* fix #9423 followup #17594: distinct generics now work in VM (#21816)ringabout2023-05-102-3/+26
| | | | | | | | | * fix #9423 distinct generics now work in vm * fixes cpp tests --------- Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* re-enable badssl test (#21775)metagn2023-05-091-4/+4
| | | test reenable badssl
* fixes #21801; object field initialization with overloaded functions (#21805)ringabout2023-05-081-0/+23
| | | | | * fixes #21801; object field initialization with overloaded functions * use the correct type
* revert #21799 and #21802 which don't pass the tests (#21804)ringabout2023-05-072-2/+2
| | | | | | | | | * Revert "ORC: make rootsThreshold thread local [backport] (#21799)" This reverts commit b74d49c037734079765770426d0f5c79dee6cf87. * Revert "fixes #21752 [backport] (#21802)" This reverts commit d0c62fa169f3970653ce0d5bbd16e123efb24251.
* fixes #21280; Enum with int64.high() value crashes compiler (#21285)ringabout2023-05-061-0/+8
| | | | | | | | | | | | | | | * fixes #21280; Enum with int64.high() value crashes compiler * Update tests/enum/tenum.nim * Update tests/enum/tenum.nim * fixes tests * Update tests/enum/tenum.nim --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* implement `=dup` hook eliminating `wasMoved` and `=copy` pairs (#21586)ringabout2023-05-062-2/+71
| | | | | | | | | | | | | | | | | | | * import `=dup` hook eliminating `wasMoved` and `=copy` pairs * add dup * add a test for dup * fixes documentation * fixes signature * resolve comments * fixes tests * fixes tests * clean up
* Fix some `styleCheck` bugs (#20095)quantimnot2023-05-064-0/+62
| | | | | | | | | | | refs #19822 Fixes these bugs: * Style check violations in generics defined in foreign packages are raised. * Builtin pragma usage style check violations in foreign packages are raised. * User pragma definition style check violations are not raised. Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
* fixes #21704; remove nfIsRef for genLit in VM (#21765)ringabout2023-05-061-0/+69
| | | | | | | | | | | | | * fixes #21704; remove `nfIsRef` for genLit * remove nfIsRef from the output of macros * make the logic better * try again * act together * excl nfIsRef
* ORC: make rootsThreshold thread local [backport] (#21799)Andreas Rumpf2023-05-062-2/+2
|
* fixes #21792; enable checks for sum, prod, cumsummed and cumsum (#21793)ringabout2023-05-051-1/+15
| | | | | | | * enable checks for sum, prod, cumsummed and cumsum * fixes #21792 * add test cases
* consistent use of scForceOpen for generic dot field symbols (#21738)metagn2023-05-053-1/+62
| | | | | | | | | | | | | | | | | | | | | * always force open generic dot field symbols? fixes #21724 but might break code * alternative, should fix CI * other alternative, add test for previous CI failure * not needed * make sure call doesn't compile too * ok actual second test * ok final actual correct test * apply performance idea * don't make fromDotExpr static
* error on user pragma args (#21776)metagn2023-05-031-0/+5
| | | closes #20978
* closes #10108; add a test case (#21770)ringabout2023-05-031-10/+22
|
* line info for strformat + fix issue with typed templates (#21761)metagn2023-05-022-0/+18
| | | | | * line info in strformat * also fix #20381
* cheap fix for #10853 + better tuple subscript error message (#21767)metagn2023-05-023-1/+6
| | | | | | | * cheap fix for #10853 * also better tuple subscript error message * weird
* fixes #19863; move sha1, md5 to nimble packages for 2.0 (#21702)ringabout2023-05-0213-59/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move sha1, md5 to nimble packages * boot the compiler * fixes tests * build the documentation * fixes docs * lol, I forgot koch.nim * add `nimHasChecksums` define * clone checksums but maybe copying is better * bump nimble hash * use ChecksumsStableCommit * fixes tests * deprecate them * fixes paths * fixes koch
* handle quoted routine symbols and non symbols expressions as before (#21740)ringabout2023-04-281-0/+11
|
* fix #21727 (#21729)metagn2023-04-261-0/+11
|
* refactoring in preparation for better, simpler name mangling that wor… ↵Andreas Rumpf2023-04-241-1/+1
| | | | | | | | | | | (#21667) * refactoring in preparation for better, simpler name mangling that works with IC flawlessly * use new disamb field * see if this makes tests green * make tests green again
* fix iterator equality + add test for proc equality + fix sameType (#21707)metagn2023-04-232-0/+64
| | | | | | | | | | | | | | | | | | | | | | | * fix iterator equality + add test also for procs fixes #21706 * all targets * and isNil and repr * separate overloads, fix sameType * more restricted sameType? * merge overloads again?? * remove sametype change for now * fix sameType anyway (CI failure was not related) --------- Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* temporarily disable badssl tests (#21710)metagn2023-04-231-65/+77
| | | | | | | * temporarily disable badssl tests refs #21709 * fix
* alias syntax fixes, improvements and tests (#21671)metagn2023-04-224-26/+101
| | | | | | | | | | | | | * alias syntax fixes, improvements and tests * even better, cannot use alias syntax with generics * more type tests, improve comment * fix again * consistent error message + make t5167_5 work * more comments, remove {.noalias.}
* implements #21620: allowing to import multiple modules with shared names ↵Juan M Gómez2023-04-211-1/+1
| | | | (#21628)
* stdlib tests now check refc too (#21664)ringabout2023-04-21140-39/+256
| | | | | | | | | | | * stdlib tests now check refc too * typo * fixes line numbers * disable cpp * do not touch
* tweak spellsuggest; three counts for equal distances candidates by default ↵ringabout2023-04-211-1/+1
| | | | | | | (#21700) * tweak spellsuggest; three counts for equal distances candidates * only suggest typos when length > 3
* add test for #13764 (#21699)Bung2023-04-211-0/+6
|
* fixes #21540; deref block at transf phase to make injectdestructors function ↵ringabout2023-04-191-2/+53
| | | | | | | | | | | | | properly (#21688) * fixes #21540; deref block at transf phase to make injectdestructors function properly * add a test case * add one more test * fixes the type of block * transform block
* Fix RST/Markdown false heading detection (#21685)Andrey Makarov2023-04-182-1/+40
|
* import brackets support `as` and prefixes [backport] (#21636)metagn2023-04-181-3/+8
| | | | | | | * import brackets support `as` and prefixes fixes #21635 * copyTree -> copyNode
* actually fix #19015 (#21680)metagn2023-04-171-0/+28
| | | | | | | * actually fix #19015 * more tests * round out
* revert #21227 (#21681)metagn2023-04-172-4/+15
| | | | | | | | | * revert #21227 but keep test * add test for #21677 * don't export * delete test
* warn on set types bigger than max size, default to 0..255 for int literals ↵metagn2023-04-171-0/+10
| | | | | | | | | | | | | | | | | | | (#21659) * test implicitly huge set types refs https://github.com/nim-lang/RFCs/issues/298 * oh my god * boot at least * don't error, fix remaining issues, no 2 len arrays * fix runnable example * test assuming 0..255 for int literal * test refactor, add changelog, test
* fixes #21674; `lent` can be used in the fields or the cast type as a ↵ringabout2023-04-181-0/+16
| | | | | | | | | parameter (#21684) * fixes #21674; `lent` can be used in the fields or the cast type as a parameter * add a test case * fix the test
* fixes #20155; repr range with distinct types is broken in ORC (#21682)ringabout2023-04-171-1/+1
| | | fixes #20155; repr range with distinct types is broken with ORC
* fixes #18146; fixes #19372; disable tlsEmulation on windows; static link ↵ringabout2023-04-142-4/+0
| | | | | | | pthreads with mingw (#21668) * fixes #18146; disable tlsEmulation on windows; static link libwinthreads DLL * whatever
* runnableExamples imports std/assertions by default (#21658)metagn2023-04-141-0/+4
| | | closes https://github.com/nim-lang/RFCs/issues/499
* custom pragmas: correct error condition, remove outdated symkind whitelist ↵metagn2023-04-134-6/+55
| | | | | | | | | | | | | | | (#21653) * test not restricting custom pragma applied symbols fixes #21652 * fix other test * different patch * fix tests * actually test #18212 and other routines
* fixes #20900; Calling template through from generic function across module ↵ringabout2023-04-132-2/+11
| | | | | | | fails to build (#21649) * fixes #20900; Calling template through from generic function across module fails to build * sanother way
* set module symbol type to None instead of nil for discard check (#21657)metagn2023-04-131-0/+15
| | | | | | | * set module symbol type to None instead of nil fixes #19225 * alright
* fixes #21632; enforce deref for `wasMoved` in ORC (#21647)ringabout2023-04-121-1/+10
| | | fixes #21632; enforce deref for `wasMoved`
* int64/uint64 as bigint in JS (#21613)metagn2023-04-1110-40/+59
| | | | | | | | | | | * int64/uint64 as bigint in JS * fix CI * convert to compile option * fix lie * smaller diff, changelog entry
* fix #15691 (#21623)metagn2023-04-111-0/+22
| | | `semProcAux` has a check for `checkMinSonsLen(n, bodyPos + 1)`
* `proc` typeclass accounts for `iterator`, call conventions + `nil` fix + ↵metagn2023-04-112-0/+83
| | | | | | | | | | | | | document typeclass AST (#21629) * test fix #16546 #16548 + another issue * please don't tell me other packages do this * fix CI + test typeclass callconv pragma * better logic in parser * docs and changelog
* Fix option lists with additional indentation in Markdown (#21633)Andrey Makarov2023-04-111-0/+26
| | | | | | | | This is more Markdown-ish way to fix issue #21055, then PR #21625. It does not enable RST definition lists, instead it makes adding additional indentation (less than 4) right after a paragraph be ignored, as it's done for all block elements in Markdown. (In this case this tenet is applied to option lists that are not part of CommonMark spec by themselves).
* fixes #21638; `fromJson` should support empty objects (#21641)ringabout2023-04-111-0/+5
| | | | | * fixes #21638; `fromJson` should supports empty objects * complete the logic
* remove useVersion (#21626)metagn2023-04-082-2/+2
| | | test removing useVersion
* `for` loop expression can now have generated `iterator`'s called (#21627)Jason Beetham2023-04-081-0/+54
| | | A for expression now can have a generated iterator, allowing for more composable iterables
* fixes #21617; createTypeBoundOps with PContext in order to instantiate ↵ringabout2023-04-071-0/+6
| | | | | | | generics (#21619) * fixes #21617; createTypeBoundOps with PContext in order to instantiate generics * keep idgen