summary refs log tree commit diff stats
path: root/tests/compiler
Commit message (Collapse)AuthorAgeFilesLines
* correct grammar (ref #20199) and add check for grammar.txt (#20494)ringabout2022-10-061-0/+7
| | | | | | | * correct grammar; ref #20199 * add check for keeping grammar.txt up-to-date * add nimTestGrammar
* decrease iteration count of btree test (#20491)Bung2022-10-041-1/+1
| | | disable btree test
* Fix #16937; --clib option pass library name to backend C compiler correctly ↵Tomohiro2022-09-013-0/+15
| | | | | | | | | | | | | (#19754) * Fix 16937: Make --clib option works * Make tests/compiler/tcmdlineclib.nim works from any current dir * Try to fix link error on macosx * Add a comment to tests/compiler/tcmdlineclib.nims Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* fix #20012 (#20013)Daniel Clarke2022-07-131-0/+15
| | | | | | | * replace gcc asm with __asm__ and add a test * update test case to specify gcc or clang and not cpp Co-authored-by: daniel <danielclarke@wearepopgun.com>
* Add changes required by Nimble lock file support (#12104)Ivan Bobev2021-07-151-24/+73
| | | | | | | | | | | | | | | | Implemented support for Nimble local cache with package directories with a checksum of the package at the end of their names. Now the compiler supports package paths in the form: * /path_to_nimble_cache_dir/pkgs/package_name-1.2.3- FEBADEAEA2345E777F0F6F8433F7F0A52EDD5D1B * /path_to_nimble_cache_dir/pkgs/package_name-#head- 042D4BE2B90ED0672E717D71850ABDB0A2D19CD2 * /path_to_nimble_cache_dir/pkgs/package_name-#branch-name- DBC1F902CB79946E990E38AF51F0BAD36ACFABD9 Related to nim-lang/nimble#127
* add more APIs to compiler/debugutils; re-export it (#18243)Timothee Cour2021-06-181-0/+38
|
* close #12684 add testcase (#17599)flywind2021-03-311-0/+7
|
* unify tuple expressions (#13793)Arne Döring2021-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* testament: support disabled:osx as alias to disabled:macosx (#17124)Timothee Cour2021-02-221-1/+1
|
* move asciitables to std/private/ (#16498)flywind2020-12-291-1/+1
| | | | | * move asciitables * minor
* use doAssert in tests (#16486)flywind2020-12-281-7/+7
|
* testament: error instead of silently ignore invalid targets; remove ↵Timothee Cour2020-12-141-1/+0
| | | | | | | | | | | pointless alias target vs targets; document matrix; DRY (#16343) * testament: error instead of silently ignore invalid targets * s/target/targets/ * fix test; refs #16344 * address comments * Update testament/specs.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* move tests under the compiler directory to testament (#16096)flywind2020-11-255-0/+344
|
* trunner was not actually being tested in non-CTFFI mode; minor testament ↵Timothee Cour2020-05-192-2/+2
| | | | | | | | | | cleanups (#14377) * use check * trunner now works with cpp * cleanup: move compiler/unittest_light => stdtest/unittest_light * fix tests/readme.md * remove deadcode references to rodfiles * fix for windows
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-1/+1
| | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here.
* Fixes #12536 (#12568) [backport]Tomohiro2019-11-024-0/+26
|
* fixes #11194 (#11242)Arne Döring2019-05-141-0/+12
|
* improve formatting in assertEqualsTimothee Cour2019-01-141-11/+11
|
* add `alignTable`, `parseTableCells` to align/format a tab(etc) delimited ↵Timothee Cour2019-01-093-0/+171
table (#10182) * add compiler/unittest_light.nim for easy diffing: assertEquals and mismatch * fixup * add alignTable, parseTableCells