Bung 083ea8f10c fix #7446 Generics: type mismatch 'SomeunsignedInt or Natural' (#20522) 2 years ago
..
actiontable 7f18d7cbc1 Merge tests into a larger file (part 1 of ∞) (#9318) 6 years ago
alias 000b8afd26 Remove expr/stmt (#5857) 7 years ago
align 7e1ae35195 testament: error instead of silently ignore invalid targets; remove pointless alias target vs targets; document matrix; DRY (#16343) 4 years ago
ambsym cfff454cf9 closed ambiguous enum defaults to first overload (#20457) 2 years ago
arc 5602183234 'lock levels' are deprecated, now a noop (#20539) 2 years ago
arithm 339ebe958d JS: fix div uint64 no truncation (#16899) 4 years ago
array 9df195ef58 style usages part one (openarray => openArray) (#19321) 3 years ago
assert d4f7f1d8f3 Improve documentation for assertions (#16988) 4 years ago
assign 7739e23420 defaults to ORC (#19972) 2 years ago
astoverload 20b5f31c03 new tester; all tests categorized 11 years ago
astspec 5b26f2bd81 fix deprecated example (#18721) 3 years ago
async 7739e23420 defaults to ORC (#19972) 2 years ago
avr 430a179307 default threads on (#19368) 2 years ago
benchmarks e112974920 fix #16752: threadvar now works with importcpp types; osx now uses native TLS (`--tlsEmulation:off`), which can be orders of magnitude faster (#16750) 4 years ago
bind 5602183234 'lock levels' are deprecated, now a noop (#20539) 2 years ago
borrow 8d5a275189 Fixed distinct composite type class proc borrowing (#18904) 3 years ago
casestmt a95b6391fd support cstring in `case` (#20130) 2 years ago
ccgbugs 0b1650576c move widestrs out of system (#20462) 2 years ago
ccgbugs2 33cd883e27 [add testcase] NRVO does not occur with init procedures (#19462) 3 years ago
clearmsg 1105d03644 require errormsg to be specified before file. 6 years ago
closure 5602183234 'lock levels' are deprecated, now a noop (#20539) 2 years ago
cnstseq 1105d03644 require errormsg to be specified before file. 6 years ago
collections 723a71bd22 follow up #20109; remove `shallow` seqs/strings for ORC (#20502) 2 years ago
compilepragma 7e9cda7dba fixes #10299 (#11324) 5 years ago
compiler e323b91a32 correct grammar (ref #20199) and add check for grammar.txt (#20494) 2 years ago
compilerapi 73a8b950cb big steps torwards an efficient, simple IC implementation (#16543) 4 years ago
compilerfeatures 70a30317f7 fix #16693: testament spec nimout too lax (#16698) 4 years ago
compiles d102b2f54c deprecate unsafeAddr; extend addr (#19373) 3 years ago
concat 20b5f31c03 new tester; all tests categorized 11 years ago
concepts 7739e23420 defaults to ORC (#19972) 2 years ago
constr 72b89eff82 semLambda removed, semProcAux reworked (#17379) 4 years ago
constraints 1105d03644 require errormsg to be specified before file. 6 years ago
constructors be95f8fdfa Turn some of the errors back into warnings 5 years ago
controlflow 299ddda5f6 Make unreachable code a warning instead of an error (#14816) 4 years ago
converter 723a71bd22 follow up #20109; remove `shallow` seqs/strings for ORC (#20502) 2 years ago
coroutines dfe6797023 fix #15628 (#16387) 4 years ago
cpp 919a889ba8 moderate system cleanup & refactor (#20355) 2 years ago
defaultprocparam 7c359a062c Add testcase for #12252 (#15676) 4 years ago
deprecated de4b0346bd store full definition AST for consts, fix noRewrite (#20115) 2 years ago
destructor 8d47bf1822 new move analyser2 (#20471) 2 years ago
dir with space fa058773db fixes #10042 (allow spaces in import) (#10504) 6 years ago
discard 7f1d2489ad improve the 'has to be discarded' error message 4 years ago
distinct 1182216381 remove a special case in sigmatch; distinct pointer types no longer match `nil` type (#20251) 2 years ago
distros e63fc95bd4 fix tdistros test which was failing on Nightlies 4 years ago
dll 779b4e307b don't use `{.rtl.}` for generics, otherwise `-d:useNimRtl` gives `ambiguous identifier` nimrtl error (#18406) 3 years ago
effects 5602183234 'lock levels' are deprecated, now a noop (#20539) 2 years ago
enum cfff454cf9 closed ambiguous enum defaults to first overload (#20457) 2 years ago
errmsgs 5602183234 'lock levels' are deprecated, now a noop (#20539) 2 years ago
exception 7739e23420 defaults to ORC (#19972) 2 years ago
exprs 70a30317f7 fix #16693: testament spec nimout too lax (#16698) 4 years ago
fields 6d442a40a6 use doAssert in tests (#16486) 4 years ago
float cc0f02d57d rename nimFpRoundtrips => nimPreviewFloatRoundtrip (#18566) 3 years ago
fragmentation 381498b0db tests: disable flaky tests for now; closes #9421 6 years ago
friends e80465dacf tests: Trim .nim files trailing whitespace 9 years ago
gc 4c46358db1 remove shallowCopy for ARC/ORC (#20070) 2 years ago
generics 083ea8f10c fix #7446 Generics: type mismatch 'SomeunsignedInt or Natural' (#20522) 2 years ago
gensym 7739e23420 defaults to ORC (#19972) 2 years ago
global 1105d03644 require errormsg to be specified before file. 6 years ago
ic 7739e23420 defaults to ORC (#19972) 2 years ago
import_in_config 154db46db8 fixes a regression that caused --import in a config file to break things 8 years ago
importalls 78e2d299df typo: nonexistant => nonexistent (#17918) 3 years ago
init 0d23419e68 DAA and 'out' parameters (#20506) 2 years ago
isolate b7c66ce860 fixes #19013 [backport:1.6] (#19111) 3 years ago
iter 7739e23420 defaults to ORC (#19972) 2 years ago
js c651817ffd fixes devel CI (#20512) 2 years ago
lent 5602183234 'lock levels' are deprecated, now a noop (#20539) 2 years ago
let 9acbf99efb Allow let to not have value when using importc (#14258) 4 years ago
lexer a8cc5d1379 Unicode Operators are no longer experimental (#20444) 2 years ago
lookups d1d141b135 new .redefine pragma for templates, warn on redefinition without it (#20211) 2 years ago
macros de4b0346bd store full definition AST for consts, fix noRewrite (#20115) 2 years ago
magics 7739e23420 defaults to ORC (#19972) 2 years ago
manyloc 7739e23420 defaults to ORC (#19972) 2 years ago
metatype 7739e23420 defaults to ORC (#19972) 2 years ago
method e0c1159fb3 fixes #20391; make of operator work with generics for ORC (#20395) 2 years ago
misc 81e7811e01 fixes nim check with orc (#20456) 2 years ago
modules 7739e23420 defaults to ORC (#19972) 2 years ago
namedparams 6c487a6309 fixes #12196 5 years ago
navigator 3b80f0dc8e IC navigator: added support for include files (#17784) 3 years ago
newconfig 82319ef00d fix #8219; nim check/dump shouldn't run single nimscript project [backport: 1.6] (#19641) 3 years ago
nimble 31a8cf16bb testament spec: remove errmsg alias of errormsg (#16188) 4 years ago
nimdoc 0de3d4292f fix #16993, #18054, #17835 runnableExamples now works with templates and nested templates (#18082) 3 years ago
niminaction 7739e23420 defaults to ORC (#19972) 2 years ago
notnil c86fdfa1ee add testcase for #9466 (#17538) 4 years ago
objects d954e698b3 Automatic dereferencing is removed (#20531) 2 years ago
objvariant 9c17a32e0e fix #19266; allow reassign discriminant field (#19567) 3 years ago
openarray 9df195ef58 style usages part one (openarray => openArray) (#19321) 3 years ago
osproc 06232b7f2e fixes #18058 (#18162) 3 years ago
overflw c07807bedf Fix #15706 (#15846) 4 years ago
overload 5602183234 'lock levels' are deprecated, now a noop (#20539) 2 years ago
package d30c6419a0 Refactor and doc package handling, module name mangling (#19821) 2 years ago
package_level_objects c17f6c7837 new feature: package level objects 7 years ago
parallel 7739e23420 defaults to ORC (#19972) 2 years ago
parser 7739e23420 defaults to ORC (#19972) 2 years ago
pragmas 5602183234 'lock levels' are deprecated, now a noop (#20539) 2 years ago
proc dbbafd320c manual: Document that comma propagates the default values of parameters (#19080) 3 years ago
procvar 749dbce4c6 Merge tests into a larger file (part 5 of ∞) (#9368) 6 years ago
range cbd9fee22a fix #19678 Broken behavior with string ranges in case labels (#20475) 2 years ago
rational 7d6cbf290a Error -> Defect for defects (#13908) 4 years ago
realtimeGC 1e0165186b testament: remove deadcode related to realtimeGC, testC, callCCompiler (#18087) 3 years ago
sandwich 2f213db7ee fixes #11225; generic sandwich problems; [backport:1.2] (#17255) 4 years ago
sets 5ebd1248df overloadable enums no longer experimental (#20298) 2 years ago
showoff 9df195ef58 style usages part one (openarray => openArray) (#19321) 3 years ago
slice 0213c7313b allow `HSlice` bounded by constants of distinct types (#19219) [backport:1.2] 3 years ago
specialops aac8f67573 tests and docs for call operator (#16980) 4 years ago
statictypes 5602183234 'lock levels' are deprecated, now a noop (#20539) 2 years ago
stdlib 5602183234 'lock levels' are deprecated, now a noop (#20539) 2 years ago
stmt 0869d2a477 fix #15972 (#15994) 4 years ago
strictnotnil 6289b002b6 [Testament] Extend and document message testing aids (#19996) 2 years ago
stylecheck 70c25c45d6 fixes #20397; fixes stylecheck regression (#20398) 2 years ago
system 723a71bd22 follow up #20109; remove `shallow` seqs/strings for ORC (#20502) 2 years ago
template 2cca38d33c pragma for sfCallsite instead of name check + better semantics, test (#20464) 2 years ago
testament 6289b002b6 [Testament] Extend and document message testing aids (#19996) 2 years ago
testdata 8c100a37b9 Add new self-signed 4096 bit certificate to testdata (#19758) 2 years ago
threads 964afd3050 Make output assertion deterministic for test for #7172 (#20495) 2 years ago
tools 3e43ea3384 make koch and tools work with `nimPreviewSlimSystem` (#20459) 2 years ago
trmacros de4b0346bd store full definition AST for consts, fix noRewrite (#20115) 2 years ago
tuples 9df195ef58 style usages part one (openarray => openArray) (#19321) 3 years ago
typerel 7739e23420 defaults to ORC (#19972) 2 years ago
types a600dfa5b7 closes #11267; closes #11259; closes #11085; add testcases (#20505) 2 years ago
untestable cddd4de658 fixes broken ssl tests (#20181) 2 years ago
usingstmt f6eb1d4d7d remove {.this.} pragma, deprecated since 0.19 (#20201) 2 years ago
valgrind 55a33e1664 testament: support disabled:osx as alias to disabled:macosx (#17124) 4 years ago
varres 7bfb9f0002 close #17636 (#17643) 4 years ago
varstmt 3b783f7e13 Testament: refactoring; makes the test joiner green 6 years ago
views fdc6b0fb6e fixes #19986; mutable view from immutable location (#20134) 2 years ago
vm 5602183234 'lock levels' are deprecated, now a noop (#20539) 2 years ago
whenstmt 3dbf2ac946 remove echo statements in tests (part 1) (#20178) 2 years ago
ast_pattern_matching.nim 86f7f4ffa5 remove deprecated type pragma syntax, fix bugs that required it (#20199) 2 years ago
config.nims f89ba2c951 add default field support for object in ARC/ORC (#20480) 2 years ago
dummy.txt a68a4bfaf2 Remove install.txt and readme.txt (#9521) 6 years ago
js.html 72a3e21f28 Removes executable bit for text files. 12 years ago
js.nim e80465dacf tests: Trim .nim files trailing whitespace 9 years ago
m14634.nim 6d442a40a6 use doAssert in tests (#16486) 4 years ago
mmaptest.nim 92d6fb86c6 Enable customizing PageShift to set PageSize for embedded targets (#19129) 3 years ago
readme.md 6289b002b6 [Testament] Extend and document message testing aids (#19996) 2 years ago
rectest.nim e80465dacf tests: Trim .nim files trailing whitespace 9 years ago
stckovfl.nim e80465dacf tests: Trim .nim files trailing whitespace 9 years ago
test_nimscript.nims 0b1650576c move widestrs out of system (#20462) 2 years ago

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.

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.