summary refs log tree commit diff stats
path: root/tests/effects/teffects1.nim
Commit message (Collapse)AuthorAgeFilesLines
* Named arguments in commands + many grammar fixes (#20994)metagn2022-12-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Breaking parser changes, implement https://github.com/nim-lang/RFCs/issues/442 Types are separated from expressions and better reflected in the grammar. * add test * more accurate grammar * fix keyword typedescs * accept expressions in proc argument lists * CI "fixes" * fixes * allow full ref expressions again, adapt old tests * cleanup, fix some tests * improve grammar, try and revert semtypes change * restrict sigil binding to identOrLiteral * fix, should have caught this immediately * add changelog entry, fix double not nil bug * correct grammar * change section * fix * real fix hopefully * fix test * support LL(1) for tuples * make grammar.txt too
* 'lock levels' are deprecated, now a noop (#20539)ringabout2022-10-111-1/+1
| | | | | * 'lock levels' are deprecated, now a noop * fixes tests
* fix #2614 improve error message when array of proc calling convention… ↵Bung2022-09-261-3/+4
| | | | | (#20379) fix #2614 improve error message when array of proc calling convention mismatch
* [Testament] Extend and document message testing aids (#19996)quantimnot2022-09-011-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [Testament] Extend and document message testing aids * Enable inline msgs when not reject action. Eliminates the pain of changing the line and column numbers in `nimout` or `output` while making changes to the test. * Enable using inline msgs and nimout together. Allows ease of inline msgs for the test as well as testing msgs from other modules. * Add path separator and test filename variable interpolation in msgs. Eases handling path separators in the msgs. * Add some documentation. * Fixed lots of broken tests * Fixed more broken tests * Support multiple inline messages per a line * Fix a broken test * Revert variable substitution in `output` * Remove uneeded params * Update doc/testament.md Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Update testament/specs.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Update testament/specs.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Fix indentation Co-authored-by: quantimnot <quantimnot@users.noreply.github.com> Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* strict effects (#18777)Andreas Rumpf2021-09-021-1/+2
| | | | | | | | | | | | | | | | | * fixes #17369 * megatest is green for --cpu:arm64 * docgen output includes more tags/raises * implemented 'effectsOf' * algorithm.nim: uses new effectsOf annotation * closes #18376 * closes #17475 * closes #13905 * allow effectsOf: [a, b] * added a test case * parameters that are not ours cannot be declared as .effectsOf * documentation * manual: added the 'sort' example * bootstrap with the new better options
* New hint for unused exceptions in .raises (#15492)IDF2020-10-061-1/+6
| | | | | | | * New hint for unused exceptions in .raises * Fix effects test * Further adapt teffects1.nim
* testament improvement: allow inline error messages inside test cases (#15294)Andreas Rumpf2020-09-101-10/+9
| | | | * testament support for inline error messages * adapt teffects1.nim test to show the potential
* '.push raises: []' now also affects proc types (#13776)Andreas Rumpf2020-03-291-2/+21
| | | | | | | | | * '.push raises: []' now also affects proc types * fixes the regression * less disruptive bugfix * another attempt
* better error messages for Nim's effect systemAraq2020-03-221-1/+2
|
* system refactorings (#10559)Andreas Rumpf2019-02-061-2/+2
| | | | | | | | * move IO subsystem into its own module; refs #10385 * make standalone test compile again * make C++ examples compile again * make more tests green * make sysAssert and gcAssert work again
* require errormsg to be specified before file.Arne Döring2018-12-111-2/+1
|
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-3/+3
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* renamed writeln to writeLine in testspatrick dw2015-06-191-1/+1
|
* Clean up tests/effectsdef2015-02-041-1/+0
|
* fixes #325Araq2015-01-281-1/+1
|
* better effect inferenceAraq2014-11-021-1/+1
|
* made tests greenAraq2014-09-221-1/+1
|
* more tests greenAraq2014-08-311-4/+4
|
* fixes 'gcsafe'Araq2014-08-121-1/+1
|
* make some tests red :) (i.e. print failure details while running the tester)Zahary Karadjov2014-03-161-1/+1
|
* handle arbitrary expressions dependent on static input params in proc signaturesZahary Karadjov2014-03-161-1/+1
|
* new tester; all tests categorizedAraq2014-01-131-0/+21