ringabout 533f1c86b3 tesys пре 2 година
..
actiontable 7f18d7cbc1 Merge tests into a larger file (part 1 of ∞) (#9318) пре 6 година
alias 84fab7f39b fix #19349 incompatible type when mixing float32 and cfloat in generics (#20551) пре 2 година
align 7e1ae35195 testament: error instead of silently ignore invalid targets; remove pointless alias target vs targets; document matrix; DRY (#16343) пре 4 година
ambsym 2449c37137 better procvar ambiguity errors, clean up after #20457 (#20932) пре 2 година
arc 533f1c86b3 tesys пре 2 година
arithm 5d469686b0 fix #20829 Regression in int64 type matching since (#21019) пре 2 година
array 9df195ef58 style usages part one (openarray => openArray) (#19321) пре 3 година
assert 4ca2dcb404 Named arguments in commands + many grammar fixes (#20994) пре 2 година
assign 7739e23420 defaults to ORC (#19972) пре 2 година
astoverload 20b5f31c03 new tester; all tests categorized пре 11 година
astspec 5b26f2bd81 fix deprecated example (#18721) пре 3 година
async c7493bbdd0 `multisync` now allows tuples in return type (#21074) пре 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) пре 3 година
bind 5602183234 'lock levels' are deprecated, now a noop (#20539) пре 2 година
borrow 98b2838a30 borrowed procs can have a body now for documentation generation (#20617) пре 2 година
casestmt 8cfce70738 fix #18964 Small string case with else statement first in AST evaluat… (#20862) пре 2 година
ccgbugs a70d3abd37 replace data init function with consts for typeinfov2 (#20977) пре 2 година
ccgbugs2 33cd883e27 [add testcase] NRVO does not occur with init procedures (#19462) пре 2 година
clearmsg 1105d03644 require errormsg to be specified before file. пре 6 година
closure 6d8cf25bd7 deprecate `do:` meaning `do ():` + misc cleanup (#20927) пре 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) пре 3 година
compiles d102b2f54c deprecate unsafeAddr; extend addr (#19373) пре 2 година
concat 20b5f31c03 new tester; all tests categorized пре 11 година
concepts 555c5ed1a7 fix bugs with dot & call operators [backport] (#20931) пре 2 година
constr ea2f2775a7 fix #18990 Regression in proc symbol resolution; Error: attempting to… (#20554) пре 2 година
constraints 1105d03644 require errormsg to be specified before file. пре 6 година
constructors be95f8fdfa Turn some of the errors back into warnings пре 4 година
controlflow c5eb3fd4f0 fixes #9839; fixes noReturn pragma doesn't work for non-simple templates (#21048) пре 2 година
converter 723a71bd22 follow up #20109; remove `shallow` seqs/strings for ORC (#20502) пре 2 година
coroutines dfe6797023 fix #15628 (#16387) пре 3 година
cpp b981f3eeb7 ship a modern nimble with lock files support (#21061) пре 2 година
defaultprocparam 7c359a062c Add testcase for #12252 (#15676) пре 4 година
deprecated 6f96c4bc96 ref #20846; give a deprecation message for overriding `=` hook (#21020) пре 2 година
destructor cdbf5b4699 fixes a severe bug of testament (#20832) пре 2 година
dir with space fa058773db fixes #10042 (allow spaces in import) (#10504) пре 5 година
discard d4afa53fd5 fixes #13583; enforce void for `nkWhileStmt` (#20947) пре 2 година
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 пре 4 година
dll 779b4e307b don't use `{.rtl.}` for generics, otherwise `-d:useNimRtl` gives `ambiguous identifier` nimrtl error (#18406) пре 3 година
effects 28bed059aa closes #20808 (#21077) пре 2 година
enum 93b085a57a closes #12589; add testcase (#20769) пре 2 година
errmsgs 4ca2dcb404 Named arguments in commands + many grammar fixes (#20994) пре 2 година
exception ef29987781 An unnamed break in a block now gives an `UnnamedBreak` warning (#20901) пре 2 година
exprs 70a30317f7 fix #16693: testament spec nimout too lax (#16698) пре 3 година
fields 6d442a40a6 use doAssert in tests (#16486) пре 4 година
float 06cd15663d fixes ptr to cstring warnings[backport] (#20848) пре 2 година
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 2564b5c938 Fix #20416. Enable the recursion limit for ref/ptr types. (#21092) пре 2 година
gensym 7739e23420 defaults to ORC (#19972) пре 2 година
global 354eb2a86c fix #20866 [ORC] Bad codegen for global pointer to iterator (#20876) пре 2 година
ic 7739e23420 defaults to ORC (#19972) пре 2 година
import_in_config 154db46db8 fixes a regression that caused --import in a config file to break things пре 8 година
importalls 78e2d299df typo: nonexistant => nonexistent (#17918) пре 3 година
init 4388636010 fixes #21043; fixes a named exception in the infixAs expression which generate an implicit uninitialized let statement (#21081) пре 2 година
isolate b7c66ce860 fixes #19013 [backport:1.6] (#19111) пре 3 година
iter 4388636010 fixes #21043; fixes a named exception in the infixAs expression which generate an implicit uninitialized let statement (#21081) пре 2 година
js 7ae7832f76 JS backend properly extends string with `setLen` (#21087) пре 2 година
lent 5602183234 'lock levels' are deprecated, now a noop (#20539) пре 2 година
let 9acbf99efb Allow let to not have value when using importc (#14258) пре 4 година
lexer 0b1d1b7886 fixes #15688; handle `strongSpace` overflow issues (#20724) пре 2 година
lookups d1d141b135 new .redefine pragma for templates, warn on redefinition without it (#20211) пре 2 година
macros 1585bfec3b fix #16758 Nim crashes in fixAbstractType (#20855) пре 2 година
magics d26b1232ee Add `nkFastAsgn` into `semExpr` (#20939) пре 2 година
manyloc 7739e23420 defaults to ORC (#19972) пре 2 година
metatype 7739e23420 defaults to ORC (#19972) пре 2 година
method 0bacdf5fdf fixes #20515; base `method` requires explicit `{.gcsafe.}` to be GC-safe (#20574) пре 2 година
misc 5917c2d5b7 fix #15836 proc arg return type auto unexpectly match proc with concr… (#21065) пре 2 година
modules 7739e23420 defaults to ORC (#19972) пре 2 година
namedparams 6c487a6309 fixes #12196 пре 5 година
navigator 3b80f0dc8e IC navigator: added support for include files (#17784) пре 3 година
newconfig 82319ef00d fix #8219; nim check/dump shouldn't run single nimscript project [backport: 1.6] (#19641) пре 2 година
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 9ba07edb2e build the documentation of official packages (#20986) пре 2 година
notnil c86fdfa1ee add testcase for #9466 (#17538) пре 3 година
objects 55373e65b4 unpublic `arrayWith` and rename it to `nimArrayWith` (#21006) пре 2 година
objvariant 9c17a32e0e fix #19266; allow reassign discriminant field (#19567) пре 2 година
openarray fa1606c6d6 enable static tests for topenarray (#20620) пре 2 година
osproc 06232b7f2e fixes #18058 (#18162) пре 3 година
overflw c07807bedf Fix #15706 (#15846) пре 4 година
overload 48d41ab375 fixes #20645 (#20646) пре 2 година
package d30c6419a0 Refactor and doc package handling, module name mangling (#19821) пре 2 година
package_level_objects c17f6c7837 new feature: package level objects пре 7 година
parallel 3d5edb41be fixes #20958; fixes the return type of slice function [backport] (#20959) пре 2 година
parser 0a1d4ba842 fix issue #20922 by handling missing expr in `exprList` for `tkOf` (#20930) пре 2 година
pragmas 5602183234 'lock levels' are deprecated, now a noop (#20539) пре 2 година
proc 5917c2d5b7 fix #15836 proc arg return type auto unexpectly match proc with concr… (#21065) пре 2 година
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) пре 4 година
realtimeGC 1e0165186b testament: remove deadcode related to realtimeGC, testC, callCCompiler (#18087) пре 3 година
sandwich 2f213db7ee fixes #11225; generic sandwich problems; [backport:1.2] (#17255) пре 3 година
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 555c5ed1a7 fix bugs with dot & call operators [backport] (#20931) пре 2 година
statictypes a51ed90c5d fix #20148 implicit compile time conversion int to ranged float cause… (#20698) пре 2 година
stdlib 9ba07edb2e build the documentation of official packages (#20986) пре 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 9ba07edb2e build the documentation of official packages (#20986) пре 2 година
template 6d8cf25bd7 deprecate `do:` meaning `do ():` + misc cleanup (#20927) пре 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 cdbf5b4699 fixes a severe bug of testament (#20832) пре 2 година
tools 27a38a9fce fix #13790; ptr char (+friends) should not implicitly convert to cstring (#20761) пре 2 година
trmacros de4b0346bd store full definition AST for consts, fix noRewrite (#20115) пре 2 година
tuples 841d9d5975 closes #16331; add testcase (#20730) пре 2 година
typerel 9ba07edb2e build the documentation of official packages (#20986) пре 2 година
types 5917c2d5b7 fix #15836 proc arg return type auto unexpectly match proc with concr… (#21065) пре 2 година
untestable 9ba07edb2e build the documentation of official packages (#20986) пре 2 година
usingstmt f6eb1d4d7d remove {.this.} pragma, deprecated since 0.19 (#20201) пре 2 година
valgrind 55a33e1664 testament: support disabled:osx as alias to disabled:macosx (#17124) пре 3 година
varres 4ca2dcb404 Named arguments in commands + many grammar fixes (#20994) пре 2 година
varstmt 3b783f7e13 Testament: refactoring; makes the test joiner green пре 6 година
views da0a2fdca2 Unpack mSlice tupleconstr for static openarrays (#20615) пре 2 година
vm 07be1791ba fix #21045; getTime with vmopsDanger is broken; alternative to #21054 (#21056) пре 2 година
whenstmt 04c48e3c5b fix #19426 compile error using when/elif/else and typedesc in template (#20550) пре 2 година
ast_pattern_matching.nim 86f7f4ffa5 remove deprecated type pragma syntax, fix bugs that required it (#20199) пре 2 година
config.nims ef29987781 An unnamed break in a block now gives an `UnnamedBreak` warning (#20901) пре 2 година
dummy.txt a68a4bfaf2 Remove install.txt and readme.txt (#9521) пре 6 година
js.html 72a3e21f28 Removes executable bit for text files. пре 11 година
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 37fe9c0f38 Add a link for testament (#20923) пре 2 година
rectest.nim e80465dacf tests: Trim .nim files trailing whitespace пре 9 година
stckovfl.nim e80465dacf tests: Trim .nim files trailing whitespace пре 9 година
test_nimscript.nims 9ba07edb2e build the documentation of official packages (#20986) пре 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.