Andrey R (cooldome) f8b9d8c190 fix #16110 пре 4 година
..
actiontable 7f18d7cbc1 Merge tests into a larger file (part 1 of ∞) (#9318) пре 6 година
alias 000b8afd26 Remove expr/stmt (#5857) пре 7 година
align abea80376a fixes #13122 (#13126) пре 5 година
ambsym 1105d03644 require errormsg to be specified before file. пре 6 година
arc b3c3557c33 fix #16025 repr now consistent: does not insert trailing newline (#16034) пре 4 година
arithm 2f557652d4 fix operators containing percent for VM usage (#13536) пре 4 година
array b3c3557c33 fix #16025 repr now consistent: does not insert trailing newline (#16034) пре 4 година
assert da29222f86 init checks and 'out' parameters (#14521) пре 4 година
assign bf2e052e6d fix rtti sizeof for varargs in global scope (#13125) [backport] пре 5 година
astoverload 20b5f31c03 new tester; all tests categorized пре 11 година
astspec 39290cf88c Fix spellings (#12277) [backport] пре 5 година
async 6f1a72069a fix #9695 asyncmacro: tfuturevar fails when activated [backport: 1.0] (#16090) пре 4 година
bind 45d1e55e72 Add testcases for #11811 and #14315 (#14726) пре 4 година
borrow 4cb41f53f0 Add testcase for #14440 (#14771) пре 4 година
casestmt d4022ebe53 Revert "fixes #15280 [backport:1.2] (#15281)" (#15700) пре 4 година
ccgbugs 581bcfe290 fix #6497 (#16027) пре 4 година
ccgbugs2 e7f280bd26 Remove deprecated stuff from stdlib (#14699) пре 4 година
clearmsg 1105d03644 require errormsg to be specified before file. пре 6 година
closure eb429988cd fixes #15594 (#15819) пре 4 година
cnstseq 1105d03644 require errormsg to be specified before file. пре 6 година
collections f1764aaa9e sets minor improvement (#16087) пре 4 година
compilepragma 7e9cda7dba fixes #10299 (#11324) пре 5 година
compiler e909486e5c trunner was not actually being tested in non-CTFFI mode; minor testament cleanups (#14377) пре 4 година
compilerapi 098a8a7c52 nimeval errorHook support (#15255) пре 4 година
compilerfeatures 9ecb1aae80 new compiler feature: --expandMacro пре 5 година
compiles 2acf74d458 delete list comprehension (#12392) пре 5 година
concat 20b5f31c03 new tester; all tests categorized пре 11 година
concepts 8f7a013cc7 close #8558(add testcase for #8558) (#15872) пре 4 година
constr 00528cbc3c Add testcase for #10465 (#14943) пре 4 година
constraints 1105d03644 require errormsg to be specified before file. пре 6 година
constructors be95f8fdfa Turn some of the errors back into warnings пре 4 година
controlflow 299ddda5f6 Make unreachable code a warning instead of an error (#14816) пре 4 година
converter 1655c04aa3 add testcase for #9165 (#15787) пре 4 година
coroutines e35b21e553 Close#5586 (#14682) пре 4 година
cpp e4d0f9f3de typeinfo minor improvement (#16083) пре 4 година
defaultprocparam 7c359a062c Add testcase for #12252 (#15676) пре 4 година
deprecated 40b58a0a18 fix #11009 (#14935) пре 4 година
deps bbe49a14ae Correct all eggs (#15906) пре 4 година
destructor 338602a402 fix #15825 (#15894) пре 4 година
dir with space fa058773db fixes #10042 (allow spaces in import) (#10504) пре 6 година
discard 7f1d2489ad improve the 'has to be discarded' error message пре 4 година
distinct 3c85aa9e53 Make `{.requiresInit.}` to work for distinct types (#15869) пре 4 година
distros e63fc95bd4 fix tdistros test which was failing on Nightlies пре 4 година
dll f785174c60 Ref #14094 - disable hot code reloading tests on NetBSD (#15458) пре 4 година
effects 218ff27b70 fix #15851 (#15852) пре 4 година
enum 27eb19cc48 fix #15145 (#15816) пре 4 година
errmsgs 122f22d163 asynchttpserver cleanups [backport:1.0] (#15966) пре 4 година
exception b49ac11a77 fix #10343 (#14789) пре 4 година
exprs ff1c0bae4c update tests that tested for the 'discard' error messages пре 4 година
fields 795044ed2b make tests green again пре 5 година
flags 1105d03644 require errormsg to be specified before file. пре 6 година
float 96930b9cae targets: use cpp instead of c++ everywhere (was by far the most common) (#15961) пре 4 година
fragmentation 381498b0db tests: disable flaky tests for now; closes #9421 пре 6 година
friends e80465dacf tests: Trim .nim files trailing whitespace пре 9 година
gc e9df8ebcfd gc_regions: cleanup & fixes for deallocation (#11920) пре 4 година
generics f17555770e Clarify the sense in which Nim supports recursive iterators in the (#15834) пре 4 година
gensym 488f3ed085 fixes yet another gensym regression (#12145) пре 5 година
global 1105d03644 require errormsg to be specified before file. пре 6 година
ic c8cffaf420 Incremental compilation (IC): Improvements (#11881) пре 5 година
implicit a5ecbf823f lots of small changes пре 6 година
import_in_config 154db46db8 fixes a regression that caused --import in a config file to break things пре 8 година
init da29222f86 init checks and 'out' parameters (#14521) пре 4 година
isolate 71dd5f85b9 'isolate' builtin; refs https://github.com/nim-lang/RFCs/issues/244 (#15011) пре 4 година
iter 7d51ad96e9 close #2771(add testcase for #2771) (#15932) пре 4 година
js b3c3557c33 fix #16025 repr now consistent: does not insert trailing newline (#16034) пре 4 година
lent 5e8ac485a2 followup #15970 strenghten regression tests (#16075) пре 4 година
let 9acbf99efb Allow let to not have value when using importc (#14258) пре 4 година
lexer 34815a4697 megatest: make it green on Linux пре 6 година
lookups 66c50c2ffc implement the 'bind' statement for generics, it was an oversight that this was never implemented (#14584) пре 4 година
macros f8b9d8c190 fix #16110 пре 4 година
magics dfa2f011d7 close #10307(add testcase for #10307) (#15840) пре 4 година
manyloc 3de5296337 remove a condition that table size must be passed as power of 2 (#14926) пре 4 година
metatype b3c3557c33 fix #16025 repr now consistent: does not insert trailing newline (#16034) пре 4 година
method 7d6cbf290a Error -> Defect for defects (#13908) пре 4 година
misc 5e8ac485a2 followup #15970 strenghten regression tests (#16075) пре 4 година
modules e2b1491905 Fix #11352 strutil.insertSep() fails on negative numbers (#15087) пре 4 година
namedparams 6c487a6309 fixes #12196 пре 5 година
newconfig 695154970d deprecate existsDir; use dirExists instead (#14884) пре 4 година
nimble acadda8da2 tnimblepathdollarfail.nim -> tests/nimble/tnimblepathdollar_fault to reduce false positives when searching for `fail` in CI logs (#14450) пре 4 година
nimdoc 402df0b061 fix #15916 (#15917) [backport] пре 4 година
niminaction e7f280bd26 Remove deprecated stuff from stdlib (#14699) пре 4 година
notnil eca8f1d79f Add tests for #8481, #6490 and #4061 (#14083) пре 4 година
objects 35f8803250 close #4318(add testcase for #4318) (#15904) пре 4 година
objvariant 3c38edf563 Better case coverage error message for alias and range enum (#12913) пре 5 година
openarray 1551fff853 clean up deprecated stuff and unused imports in tests (#13059) пре 5 година
osproc 96930b9cae targets: use cpp instead of c++ everywhere (was by far the most common) (#15961) пре 4 година
overflw c07807bedf Fix #15706 (#15846) пре 4 година
overload fb60e35a54 close #8829(add testcase for #8829) (#15866) пре 4 година
package_level_objects c17f6c7837 new feature: package level objects пре 7 година
parallel 86d7726fb8 workaround #15725 disable freebsd tblocking_channel.nim (#15726) пре 4 година
parser 60ad95f799 Add testcase for invalid if statement (#15313) пре 4 година
pragmas 673c5990c6 fix #12558 (#15864) пре 4 година
proc e8f4586c68 allow typed/untyped in magic procs (#12911) пре 5 година
procvar 749dbce4c6 Merge tests into a larger file (part 5 of ∞) (#9368) пре 6 година
range 7d6cbf290a Error -> Defect for defects (#13908) пре 4 година
rational 7d6cbf290a Error -> Defect for defects (#13908) пре 4 година
realtimeGC b26378a468 WIP, most tests are now skipped пре 6 година
sets 42dad3a836 tables/sharedtables/intsets/etc: fix #13496, #13504, #13505; add lots of tests (#13498) [backport] пре 4 година
showoff 9465b5db44 Clean up macros (#14959) пре 4 година
specialops 547961f71e dotops: add a simple object delegation test пре 7 година
statictypes d5a0a5dfff Fix #15858 (#15887) пре 4 година
stdlib e4d0f9f3de typeinfo minor improvement (#16083) пре 4 година
stmt 0869d2a477 fix #15972 (#15994) пре 4 година
system 1fae66e4df better nativestacktrace support; refs #15284; backport [1.2] (#15384) пре 4 година
template 98cec6b692 closes #3670 [add testcase for #3670] (#15808) пре 4 година
testament 066f3ebc2a add tests for Testament "reject" action (#15709) пре 4 година
testdata abe5cb82a0 Fix for #5134 (parseJson(string) should fail on leftover data) (#5203) пре 8 година
threads 8088633250 faster CIs (#13803) пре 4 година
tools 3f29911a94 new feature: --staticBoundChecks:on to enforce static array index checking (#10965) пре 4 година
trmacros f2b041f168 Reenable a few tests пре 4 година
tuples 5bd2da3f64 Fix #14911 (#14922) [backport] пре 4 година
typerel f2b041f168 Reenable a few tests пре 4 година
types a81434a890 Fix 14127 js from int to int casting (#15918) пре 4 година
untestable 8e54bc5b0c Deprecate and/or remove ospaths (#14767) пре 4 година
usingstmt 9465b5db44 Clean up macros (#14959) пре 4 година
valgrind 436e1fa5b1 fix #15631 (#15632) пре 4 година
varres 47ce24f680 fix #12303 (#15964) пре 4 година
varstmt 3b783f7e13 Testament: refactoring; makes the test joiner green пре 6 година
views cf01945f54 ensure the Nim compiler works with --experimental:strictFuncs --experimental:views [backport:1.4] (#15737) пре 4 година
vm b3c3557c33 fix #16025 repr now consistent: does not insert trailing newline (#16034) пре 4 година
ast_pattern_matching.nim 389b140029 add tastspec (and ast_pattern_matching) (#10863) пре 5 година
config.nims bbe49a14ae Correct all eggs (#15906) пре 4 година
dummy.txt a68a4bfaf2 Remove install.txt and readme.txt (#9521) пре 6 година
js.html 72a3e21f28 Removes executable bit for text files. пре 12 година
js.nim e80465dacf tests: Trim .nim files trailing whitespace пре 9 година
m14634.nim d149823019 fix #13166 tioselectors flaky test on freebsd+OSX (#14634) пре 4 година
mmaptest.nim 39290cf88c Fix spellings (#12277) [backport] пре 5 година
readme.md 54a52e7d08 Update link to parseSpec proc пре 4 година
rectest.nim e80465dacf tests: Trim .nim files trailing whitespace пре 9 година
stckovfl.nim e80465dacf tests: Trim .nim files trailing whitespace пре 9 година
test_nimscript.nims e5db5316c2 doAssertRaises improvements; nimscript supports `except Exception as e` (#15765) пре 4 година

readme.md

This directory contains the test cases.

Each test must have a filename of the form: t*.nim

Note: Testament is only aware of tests under a directory (eg tests/foo/) and will ignore top-level tests like tests/tbar.nim.

Specs

Each test can contain a spec in a discard """ ... """ block.

Check out the parseSpec procedure in the specs module for a full and reliable reference

action

Specifies what action this test should take.

Default: run

Options:

  • compile - compiles the module and fails the test if compilations fails.
  • run - compiles and runs the module, fails the test if compilation or execution of test code fails.
  • reject - compiles the module and fails the test if compilation succeeds.

There are certain spec keys that imply run, including output and outputsub.

cmd

Specifies the Nim command to use for compiling the test.

There are a number of variables that are replaced in this spec option:

  • $target - the compilation target, e.g. c.
  • $options - the options for the compiler.
  • $file - the filename of the test.
  • $filedir - the directory of the test file.

Example:

discard """
  cmd: "nim $target --nimblePath:./nimbleDir/simplePkgs $options $file"
"""

Categories

Each folder under this directory represents a test category, which can be tested by running koch tests pcat <category> (or cat to avoid parallel testing, which is slower).

The folder dll contains simple DLL tests.

The folder realtimeGC contains a test for validating that the realtime GC can run properly without linking against the nimrtl.dll/so. It includes a C client and platform specific build files for manual compilation.