nc-x 4f392727c8 Fix fixAbstractType for user defined typeclasses, fixes #19730 & #18409 (#19732) 3 年之前
..
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 1105d03644 require errormsg to be specified before file. 6 年之前
arc f194356d21 fix #19435; don't create TypeBoundOps for tyOpenArray, tyVarargs [backport: 1.6] (#19723) 3 年之前
arithm 339ebe958d JS: fix div uint64 no truncation (#16899) 4 年之前
array 018465a234 fixes #18643 [backport:1.0] (#18678) 3 年之前
assert d4f7f1d8f3 Improve documentation for assertions (#16988) 4 年之前
assign d447c0fe3f use typeof instead type (#16962) 4 年之前
astoverload 20b5f31c03 new tester; all tests categorized 11 年之前
astspec 5b26f2bd81 fix deprecated example (#18721) 3 年之前
async 3241df2a13 fixes #18858 [backport] (#18868) 3 年之前
avr 939df8cbda ensure the avr example keeps compiling (#17663) 4 年之前
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 e40ff24c23 typeToString: type float => typedesc[float] (#17011) 4 年之前
borrow f8e185fec0 Fixed borrowing dot from aliases (#18854) 3 年之前
casestmt a65189a739 nnkArglist => nnkArgList + special case stylecheck:error (#17529) 4 年之前
ccgbugs 9df55a8979 output byref types into --header file [backport: 1.6] (#19505) 3 年之前
ccgbugs2 7e1ae35195 testament: error instead of silently ignore invalid targets; remove pointless alias target vs targets; document matrix; DRY (#16343) 4 年之前
clearmsg 1105d03644 require errormsg to be specified before file. 6 年之前
closure d447c0fe3f use typeof instead type (#16962) 4 年之前
cnstseq 1105d03644 require errormsg to be specified before file. 6 年之前
collections e7bac91773 rename nimEnableHashRef [backport] (#18941) 3 年之前
compilepragma 7e9cda7dba fixes #10299 (#11324) 6 年之前
compiler 5e6680406f Add changes required by Nimble lock file support (#12104) 3 年之前
compilerapi 73a8b950cb big steps torwards an efficient, simple IC implementation (#16543) 4 年之前
compilerfeatures 70a30317f7 fix #16693: testament spec nimout too lax (#16698) 4 年之前
compiles 9cb5ab0108 fix #18578 (#18580) 3 年之前
concat 20b5f31c03 new tester; all tests categorized 11 年之前
concepts 4f392727c8 Fix fixAbstractType for user defined typeclasses, fixes #19730 & #18409 (#19732) 3 年之前
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 3177e16b0d fix #18986; Import/except doesn't work on devel [backport: 1.6] (#19687) 3 年之前
coroutines dfe6797023 fix #15628 (#16387) 4 年之前
cpp 233c6e9fb3 fix #18410 (Errors initializing an object of RootObj with the C++ backend) [backport] (#18836) 3 年之前
defaultprocparam 7c359a062c Add testcase for #12252 (#15676) 4 年之前
deprecated b8f761b7e2 even lighter version of #17938: fix most issues with UnusedImport, XDeclaredButNotUsed, etc; fix #17511, #17510, #14246 (without realModule) (#18362) 3 年之前
destructor 6b3c77e7f4 Remove tracking of environment from osenv.nim v2 (#18575) 3 年之前
dir with space fa058773db fixes #10042 (allow spaces in import) (#10504) 6 年之前
discard 7f1d2489ad improve the 'has to be discarded' error message 5 年之前
distinct ee2eb5cae2 Fix subranges of distinct types (#18816) [backport] 3 年之前
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 8ed903d1d0 fixes #19159 [backport:1.6] (#19210) 3 年之前
enum 6f15af41a7 fixes a regression caused by overloadable enums even though they're opt-in (#18970) 3 年之前
errmsgs 5fd150b7f7 asynchttpserver: ipv6 support (#18706) 3 年之前
exception a2f5e98baa nimRawSetjmp: support Windows (#19197) 3 年之前
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 92cb765714 Raise IndexDefect when deleting element at out of bounds index (#17821) 3 年之前
generics f915b3aa86 Alternative to #18928 (#18931) 3 年之前
gensym 488f3ed085 fixes yet another gensym regression (#12145) 5 年之前
global 1105d03644 require errormsg to be specified before file. 6 年之前
ic 7b6ab5109f IC exposes typedesc implementation shenanigans (#17759) 4 年之前
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 7bfb9f0002 close #17636 (#17643) 4 年之前
isolate f85e09633d fixes #19013 [backport:1.6] (#19111) 3 年之前
iter 92457cbc39 Fix bug in freshVarForClosureIter. Fixes #18474 (#19675) [backport] 3 年之前
js 5e13d577ac undefine C symbols in JS backend [backport:1.6] (#19437) 3 年之前
lent fc0aec6f1b Optimize lent in JS [backport:1.6] (#19393) 3 年之前
let 9acbf99efb Allow let to not have value when using importc (#14258) 5 年之前
lexer 5c85e480a6 unicode operator bugfixes (#18802) 3 年之前
lookups b809562c7c make megatest consistent with unjoined tests wrt newlines, honor newlines in output spec (#16151) 4 年之前
macros 85841cd318 fix NimNode comment repr() regression [backport: 1.2] (#19726) 3 年之前
magics f048dad7c3 add testcase for #6499 #12229 #7172 (#18547) 3 年之前
manyloc fb677bf5c9 fix #17952: fix both false positives and false negatives for reInvalidSpec (#17956) 4 年之前
metatype 1788b8b991 fixes #18612; apply cache and memcmp for methods in arc/orc (#19749) 3 年之前
method 1788b8b991 fixes #18612; apply cache and memcmp for methods in arc/orc (#19749) 3 年之前
misc 1788b8b991 fixes #18612; apply cache and memcmp for methods in arc/orc (#19749) 3 年之前
modules b8f761b7e2 even lighter version of #17938: fix most issues with UnusedImport, XDeclaredButNotUsed, etc; fix #17511, #17510, #14246 (without realModule) (#18362) 3 年之前
namedparams 6c487a6309 fixes #12196 5 年之前
navigator 3b80f0dc8e IC navigator: added support for include files (#17784) 4 年之前
newconfig fd2da6da54 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 0e3ea16554 use lowercase --define switches (#17283) 4 年之前
notnil c86fdfa1ee add testcase for #9466 (#17538) 4 年之前
objects 35c812fda1 nvro don't touch cdecl types [backport: 1.6] (#19461) 3 年之前
objvariant cddf8ec6f6 implements https://github.com/nim-lang/RFCs/issues/407 (#18793) 3 年之前
openarray 83fa0fc843 fix #12521(type alias for openArray) (#17593) 4 年之前
osproc 06232b7f2e fixes #18058 (#18162) 3 年之前
overflw c07807bedf Fix #15706 (#15846) 4 年之前
overload a7cae2bda2 fixes #16325 [backport:1.4] (#18784) 3 年之前
package_level_objects c17f6c7837 new feature: package level objects 7 年之前
parallel 6e8f0f8cfc add colon (#17834) 4 年之前
parser c56ba3f06a fixes #18847 [backport] (#18870) 3 年之前
pragmas 1788b8b991 fixes #18612; apply cache and memcmp for methods in arc/orc (#19749) 3 年之前
proc b7ad29e692 fix #18113 (#18124) 3 年之前
procvar 749dbce4c6 Merge tests into a larger file (part 5 of ∞) (#9368) 6 年之前
range 3b1aabdcff change `--hint[X] => --hint:X` in nim repo (avoids shell quoting issues) (#18085) 3 年之前
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 0dc534832e close #16123 std/sets with closures in cpp (#17921) 4 年之前
showoff 9465b5db44 Clean up macros (#14959) 4 年之前
slice ee876aee28 allow `HSlice` bounded by constants of distinct types (#19219) [backport:1.2] 3 年之前
specialops aac8f67573 tests and docs for call operator (#16980) 4 年之前
statictypes b8f761b7e2 even lighter version of #17938: fix most issues with UnusedImport, XDeclaredButNotUsed, etc; fix #17511, #17510, #14246 (without realModule) (#18362) 3 年之前
stdlib b1045cb693 Really fix StringStream with ARC at compile-time, improve streams test (#19739) 3 年之前
stmt 0869d2a477 fix #15972 (#15994) 4 年之前
strictnotnil 672dc5cd87 Nil type check implementation (#15287) 4 年之前
stylecheck 9035618347 fix stylecheck bug with nre (#19356) 3 年之前
system 26ed4e5413 Fixed object field access of static objects in generics (#19283) [backport] 3 年之前
template 24445d31b3 improve several tests in testament (#18635) 3 年之前
testament 4e0f38fbb1 testament :show duration also for failed tests; improve `tshould_not_work`; mitigate #17946 tchannels timeouts (#17947) 4 年之前
testdata abe5cb82a0 Fix for #5134 (parseJson(string) should fail on leftover data) (#5203) 8 年之前
threads f048dad7c3 add testcase for #6499 #12229 #7172 (#18547) 3 年之前
tools 3b1aabdcff change `--hint[X] => --hint:X` in nim repo (avoids shell quoting issues) (#18085) 3 年之前
trmacros f2b041f168 Reenable a few tests 4 年之前
tuples ed44618deb Fixed const tuples in inferred generics (#18598) 3 年之前
typerel 78e2d299df typo: nonexistant => nonexistent (#17918) 4 年之前
types 78e2d299df typo: nonexistant => nonexistent (#17918) 4 年之前
untestable dcc40b9609 [backport] fix broken SSL tests (#19684) 3 年之前
usingstmt 9465b5db44 Clean up macros (#14959) 4 年之前
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 576fece909 fixes 'lent T' inside object constructor [backport] (#18911) 3 年之前
vm bfa8188dac fixes #19198 [backport:1.6] (#19209) 3 年之前
whenstmt 2aba116bbc when statements branches exit early (#17143) 4 年之前
ast_pattern_matching.nim 159c06e045 unify tuple expressions (#13793) 4 年之前
config.nims e7bac91773 rename nimEnableHashRef [backport] (#18941) 3 年之前
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 b9363c8bb4 Enable customizing PageShift to set PageSize for embedded targets (#19129) 3 年之前
readme.md 1e0165186b testament: remove deadcode related to realtimeGC, testC, callCCompiler (#18087) 3 年之前
rectest.nim e80465dacf tests: Trim .nim files trailing whitespace 9 年之前
stckovfl.nim e80465dacf tests: Trim .nim files trailing whitespace 9 年之前
test_nimscript.nims f061971a9b envPairs works in vm, nims (#18615) 3 年之前

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.