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

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.