Araq 3a7013ed28 avoid performance degradation for JSON objects with many fields před 3 roky
..
actiontable 7f18d7cbc1 Merge tests into a larger file (part 1 of ∞) (#9318) před 7 roky
alias 000b8afd26 Remove expr/stmt (#5857) před 8 roky
align 7e1ae35195 testament: error instead of silently ignore invalid targets; remove pointless alias target vs targets; document matrix; DRY (#16343) před 5 roky
ambsym 1105d03644 require errormsg to be specified before file. před 7 roky
arc 32d4bf3525 fixes an old ARC bug: the produced copy/sink operations don't copy the hidden type field for objects with enabled inheritance; fixes #19205 [backport:1.6] (#19232) před 3 roky
arithm 339ebe958d JS: fix div uint64 no truncation (#16899) před 4 roky
array 018465a234 fixes #18643 [backport:1.0] (#18678) před 4 roky
assert d4f7f1d8f3 Improve documentation for assertions (#16988) před 4 roky
assign d447c0fe3f use typeof instead type (#16962) před 4 roky
astoverload 20b5f31c03 new tester; all tests categorized před 12 roky
astspec 5b26f2bd81 fix deprecated example (#18721) před 4 roky
async 3241df2a13 fixes #18858 [backport] (#18868) před 4 roky
avr 939df8cbda ensure the avr example keeps compiling (#17663) před 4 roky
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) před 4 roky
bind e40ff24c23 typeToString: type float => typedesc[float] (#17011) před 4 roky
borrow 8d5a275189 Fixed distinct composite type class proc borrowing (#18904) před 4 roky
casestmt a65189a739 nnkArglist => nnkArgList + special case stylecheck:error (#17529) před 4 roky
ccgbugs fe46c8b5f1 fix marshal bugs in VM (#19161) [backport:1.6] před 4 roky
ccgbugs2 7e1ae35195 testament: error instead of silently ignore invalid targets; remove pointless alias target vs targets; document matrix; DRY (#16343) před 5 roky
clearmsg 1105d03644 require errormsg to be specified before file. před 7 roky
closure d447c0fe3f use typeof instead type (#16962) před 4 roky
cnstseq 1105d03644 require errormsg to be specified before file. před 7 roky
collections e7bac91773 rename nimEnableHashRef [backport] (#18941) před 4 roky
compilepragma 7e9cda7dba fixes #10299 (#11324) před 6 roky
compiler 5e6680406f Add changes required by Nimble lock file support (#12104) před 4 roky
compilerapi 73a8b950cb big steps torwards an efficient, simple IC implementation (#16543) před 4 roky
compilerfeatures 70a30317f7 fix #16693: testament spec nimout too lax (#16698) před 4 roky
compiles 9cb5ab0108 fix #18578 (#18580) před 4 roky
concat 20b5f31c03 new tester; all tests categorized před 12 roky
concepts ac5435ecd0 Make error message for empty new-styled concept more descriptive (#18506) před 4 roky
constr 72b89eff82 semLambda removed, semProcAux reworked (#17379) před 4 roky
constraints 1105d03644 require errormsg to be specified before file. před 7 roky
constructors be95f8fdfa Turn some of the errors back into warnings před 5 roky
controlflow 299ddda5f6 Make unreachable code a warning instead of an error (#14816) před 5 roky
converter 502ac4ed5e fixes a converter handling regression that caused private converters to leak into client modules; fixes #19213; [backport:1.6] (#19229) před 4 roky
coroutines dfe6797023 fix #15628 (#16387) před 4 roky
cpp 2f730afe9e fix #18410 (Errors initializing an object of RootObj with the C++ backend) [backport] (#18836) před 4 roky
defaultprocparam 7c359a062c Add testcase for #12252 (#15676) před 5 roky
deprecated b8f761b7e2 even lighter version of #17938: fix most issues with UnusedImport, XDeclaredButNotUsed, etc; fix #17511, #17510, #14246 (without realModule) (#18362) před 4 roky
destructor 6b3c77e7f4 Remove tracking of environment from osenv.nim v2 (#18575) před 4 roky
dir with space fa058773db fixes #10042 (allow spaces in import) (#10504) před 6 roky
discard 7f1d2489ad improve the 'has to be discarded' error message před 5 roky
distinct 83a2515af7 Fixed generic distinct conversions for 'var' (#18837) před 4 roky
distros e63fc95bd4 fix tdistros test which was failing on Nightlies před 5 roky
dll 779b4e307b don't use `{.rtl.}` for generics, otherwise `-d:useNimRtl` gives `ambiguous identifier` nimrtl error (#18406) před 4 roky
effects 1cbdc1573a fixes #19159 [backport:1.6] (#19210) před 4 roky
enum 6f15af41a7 fixes a regression caused by overloadable enums even though they're opt-in (#18970) před 4 roky
errmsgs 5fd150b7f7 asynchttpserver: ipv6 support (#18706) před 4 roky
exception 69aabdab80 nimRawSetjmp: support Windows (#19197) před 3 roky
exprs 70a30317f7 fix #16693: testament spec nimout too lax (#16698) před 4 roky
fields 6d442a40a6 use doAssert in tests (#16486) před 4 roky
float cc0f02d57d rename nimFpRoundtrips => nimPreviewFloatRoundtrip (#18566) před 4 roky
fragmentation 381498b0db tests: disable flaky tests for now; closes #9421 před 7 roky
friends e80465dacf tests: Trim .nim files trailing whitespace před 10 roky
gc 92cb765714 Raise IndexDefect when deleting element at out of bounds index (#17821) před 4 roky
generics f915b3aa86 Alternative to #18928 (#18931) před 4 roky
gensym 488f3ed085 fixes yet another gensym regression (#12145) před 6 roky
global 1105d03644 require errormsg to be specified before file. před 7 roky
ic 7b6ab5109f IC exposes typedesc implementation shenanigans (#17759) před 4 roky
implicit a5ecbf823f lots of small changes před 7 roky
import_in_config 154db46db8 fixes a regression that caused --import in a config file to break things před 9 roky
importalls 78e2d299df typo: nonexistant => nonexistent (#17918) před 4 roky
init 7bfb9f0002 close #17636 (#17643) před 4 roky
isolate b7c66ce860 fixes #19013 [backport:1.6] (#19111) před 4 roky
iter 90bfd34250 '[]' can now be used for iterators (#18814) před 4 roky
js f061971a9b envPairs works in vm, nims (#18615) před 4 roky
lent e406e28738 fix #16898 #17621 (#17628) před 4 roky
let 9acbf99efb Allow let to not have value when using importc (#14258) před 5 roky
lexer 5c85e480a6 unicode operator bugfixes (#18802) před 4 roky
lookups b809562c7c make megatest consistent with unjoined tests wrt newlines, honor newlines in output spec (#16151) před 5 roky
macros f91867aa31 accept object type node from macros (#19179) před 4 roky
magics f048dad7c3 add testcase for #6499 #12229 #7172 (#18547) před 4 roky
manyloc fb677bf5c9 fix #17952: fix both false positives and false negatives for reInvalidSpec (#17956) před 4 roky
metatype cb30dc5170 enable tests for #2710 (#18961) před 4 roky
method 58b9191354 fix #16516 method dispatch for sink args (#16594) před 4 roky
misc d584dd5b99 fixes #19015 [backport:1.6] (#19204) před 4 roky
modules b8f761b7e2 even lighter version of #17938: fix most issues with UnusedImport, XDeclaredButNotUsed, etc; fix #17511, #17510, #14246 (without realModule) (#18362) před 4 roky
namedparams 6c487a6309 fixes #12196 před 6 roky
navigator 3b80f0dc8e IC navigator: added support for include files (#17784) před 4 roky
newconfig df429fa287 config system: special case -d:release and -d:danger [backport:1.4] (#18051) před 4 roky
nimble 31a8cf16bb testament spec: remove errmsg alias of errormsg (#16188) před 5 roky
nimdoc 0de3d4292f fix #16993, #18054, #17835 runnableExamples now works with templates and nested templates (#18082) před 4 roky
niminaction 0e3ea16554 use lowercase --define switches (#17283) před 4 roky
notnil c86fdfa1ee add testcase for #9466 (#17538) před 4 roky
objects c6dc9c0255 fixes #17437 - crash where error reporting > 1 (#17547) před 4 roky
objvariant cddf8ec6f6 implements https://github.com/nim-lang/RFCs/issues/407 (#18793) před 4 roky
openarray 83fa0fc843 fix #12521(type alias for openArray) (#17593) před 4 roky
osproc 06232b7f2e fixes #18058 (#18162) před 4 roky
overflw c07807bedf Fix #15706 (#15846) před 5 roky
overload a7cae2bda2 fixes #16325 [backport:1.4] (#18784) před 4 roky
package_level_objects c17f6c7837 new feature: package level objects před 8 roky
parallel 6e8f0f8cfc add colon (#17834) před 4 roky
parser 1ef945668d treat do with pragmas but no parens as proc (#19191) před 4 roky
pragmas 1b143f5e79 Accept nnkTypeSection from typedef macro pragmas (#19168) před 4 roky
proc dbbafd320c manual: Document that comma propagates the default values of parameters (#19080) před 4 roky
procvar 749dbce4c6 Merge tests into a larger file (part 5 of ∞) (#9368) před 7 roky
range 3b1aabdcff change `--hint[X] => --hint:X` in nim repo (avoids shell quoting issues) (#18085) před 4 roky
rational 7d6cbf290a Error -> Defect for defects (#13908) před 5 roky
realtimeGC 1e0165186b testament: remove deadcode related to realtimeGC, testC, callCCompiler (#18087) před 4 roky
sandwich 2f213db7ee fixes #11225; generic sandwich problems; [backport:1.2] (#17255) před 4 roky
sets 539bced70d Add test for issue 15435 (#19079) před 4 roky
showoff 9465b5db44 Clean up macros (#14959) před 5 roky
slice 0213c7313b allow `HSlice` bounded by constants of distinct types (#19219) [backport:1.2] před 4 roky
specialops aac8f67573 tests and docs for call operator (#16980) před 4 roky
statictypes b8f761b7e2 even lighter version of #17938: fix most issues with UnusedImport, XDeclaredButNotUsed, etc; fix #17511, #17510, #14246 (without realModule) (#18362) před 4 roky
stdlib 3a7013ed28 avoid performance degradation for JSON objects with many fields před 3 roky
stmt 0869d2a477 fix #15972 (#15994) před 5 roky
strictnotnil 672dc5cd87 Nil type check implementation (#15287) před 4 roky
stylecheck 69710e4548 fix #17960: honor `matrix` also for `action: compile, action: reject` (#17980) před 4 roky
system 5fed1c05ce manual: Document the use of `static` as a proc call (#19084) před 4 roky
template 24445d31b3 improve several tests in testament (#18635) před 4 roky
testament 4e0f38fbb1 testament :show duration also for failed tests; improve `tshould_not_work`; mitigate #17946 tchannels timeouts (#17947) před 4 roky
testdata abe5cb82a0 Fix for #5134 (parseJson(string) should fail on leftover data) (#5203) před 8 roky
threads f048dad7c3 add testcase for #6499 #12229 #7172 (#18547) před 4 roky
tools 3b1aabdcff change `--hint[X] => --hint:X` in nim repo (avoids shell quoting issues) (#18085) před 4 roky
trmacros f2b041f168 Reenable a few tests před 5 roky
tuples ed44618deb Fixed const tuples in inferred generics (#18598) před 4 roky
typerel 78e2d299df typo: nonexistant => nonexistent (#17918) před 4 roky
types 78e2d299df typo: nonexistant => nonexistent (#17918) před 4 roky
untestable 8a4eeba218 try to fix broken ssl test (#18991) před 4 roky
usingstmt 9465b5db44 Clean up macros (#14959) před 5 roky
valgrind 55a33e1664 testament: support disabled:osx as alias to disabled:macosx (#17124) před 4 roky
varres 7bfb9f0002 close #17636 (#17643) před 4 roky
varstmt 3b783f7e13 Testament: refactoring; makes the test joiner green před 7 roky
views 576fece909 fixes 'lent T' inside object constructor [backport] (#18911) před 4 roky
vm f90620fb32 fixes #19198 [backport:1.6] (#19209) před 4 roky
whenstmt 2aba116bbc when statements branches exit early (#17143) před 4 roky
ast_pattern_matching.nim 159c06e045 unify tuple expressions (#13793) před 4 roky
config.nims e7bac91773 rename nimEnableHashRef [backport] (#18941) před 4 roky
dummy.txt a68a4bfaf2 Remove install.txt and readme.txt (#9521) před 7 roky
js.html 72a3e21f28 Removes executable bit for text files. před 12 roky
js.nim e80465dacf tests: Trim .nim files trailing whitespace před 10 roky
m14634.nim 6d442a40a6 use doAssert in tests (#16486) před 4 roky
mmaptest.nim 92d6fb86c6 Enable customizing PageShift to set PageSize for embedded targets (#19129) před 4 roky
readme.md 1e0165186b testament: remove deadcode related to realtimeGC, testC, callCCompiler (#18087) před 4 roky
rectest.nim e80465dacf tests: Trim .nim files trailing whitespace před 10 roky
stckovfl.nim e80465dacf tests: Trim .nim files trailing whitespace před 10 roky
test_nimscript.nims f061971a9b envPairs works in vm, nims (#18615) před 4 roky

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.