Araq 5091599822 merged branches il y a 7 ans
..
actiontable 63f9385327 Rename mget to `[]` il y a 9 ans
alias 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
ambsym e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
arithm bbeadf184e Removed platform-specific arithm test cases (#6189) il y a 7 ans
array ea47234b35 Array typedesc len (#6032) il y a 7 ans
assert 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
assign e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
astoverload 20b5f31c03 new tester; all tests categorized il y a 11 ans
async 55cb959a68 make tests green again; closes #5861 il y a 7 ans
benchmarks e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
bind 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
borrow e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
caas fd4e629905 Rename PNimrodNode to NimNode il y a 9 ans
casestmt ddc131cf07 the parser finally parses 'echo {1,2}' as it should il y a 7 ans
ccgbugs 9485f1c888 make tests green again il y a 7 ans
clearmsg a3f19c87fb lift parameter-less do block to lambdas il y a 7 ans
closure 9570c6e6f4 Add a test-case for #1641 il y a 7 ans
cnstseq e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
collections 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
compiles 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
concat 20b5f31c03 new tester; all tests categorized il y a 11 ans
concepts 9485f1c888 make tests green again il y a 7 ans
constr ddc131cf07 the parser finally parses 'echo {1,2}' as it should il y a 7 ans
constraints e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
constructors 5c7ae14074 Fixes #5965 (#6237) il y a 7 ans
controlflow e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
converter 4d5c0027e6 fixes #4537 il y a 8 ans
coroutines 3ffde39cf4 attempt to make travis OSX tests green and mandatory il y a 7 ans
cpp a75f3b3661 fixes #4910 il y a 7 ans
defaultprocparam 20b5f31c03 new tester; all tests categorized il y a 11 ans
deprecated ee57bb3e3e fixes --gc:none regression; made some tests green il y a 9 ans
destructor db99c91679 destructors: supportsCopyMem finally works for recursive types il y a 7 ans
dir with space e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
discard 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
distinct 16260b23c7 make tests on Windows green il y a 8 ans
dll e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
effects e6f0bff6dd make tests green again il y a 7 ans
enum 51cd3bd86f Fixes #5062 (#5527); JS: holes in enums il y a 7 ans
errmsgs a6006e56a7 Fix #4737 il y a 7 ans
exception 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
exprs d02486aa48 compiler: better error messages (#5613) il y a 7 ans
fields 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
float 55cb959a68 make tests green again; closes #5861 il y a 7 ans
friends e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
gc c9a2acefc1 fix il y a 7 ans
generics 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
gensym 7132b04f44 equality check on NimSym has now support in the VM; refs #6139 il y a 7 ans
global e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
implicit 865d341b32 unsigned array indexes work better; minor cleanups il y a 10 ans
import_in_config 154db46db8 fixes a regression that caused --import in a config file to break things il y a 8 ans
init e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
iter 27e89eef6b closes #3583 il y a 7 ans
js e8eb496e6f make tests green again il y a 7 ans
let cb3c99fe1f Fix tests some more il y a 9 ans
lexer 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
lookups 5d56361383 fixes #4353 il y a 8 ans
macros 68c7da227f make tests green again il y a 7 ans
magics ddc131cf07 the parser finally parses 'echo {1,2}' as it should il y a 7 ans
manyloc 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
metatype 22684370b0 remove ArrayDummySize with unchecked arrays (#5818) il y a 7 ans
method f151b7efd1 added missing test for methods il y a 7 ans
misc 8cdd89f456 make tests green again il y a 7 ans
modules dfe067a74a reorder pass: consider the 'using' statement; disabled debug output il y a 7 ans
namedparams e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
newconfig b67ea9e73b fixes #6327 il y a 7 ans
nimble 90fa64501f Implement .nimble-link files in the compiler and add tests for them. il y a 7 ans
niminaction 9d4f5c6d2c enable unguarded_access test il y a 7 ans
notnil 564c0acae2 cleaned up the code and implemented proper error messages il y a 7 ans
objects 21e22624a2 fixes #6294 il y a 7 ans
objvariant 0ce26313a4 Add test for objvariant construction order il y a 7 ans
openarray aebad711ea fixed #2240 and #3586 il y a 9 ans
osproc c39e202976 Introduce first class support for Android (#5772) il y a 7 ans
overflw e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
overload 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
parallel 3d543b1539 Channels can now block depending on maxItems (#6153) il y a 7 ans
parser 7ad115f530 Restore the old behavior of parsing "quote do:" il y a 7 ans
pragmas 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
proc e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
procvar e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
range 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
rational ce18b85d2c add two test: il y a 9 ans
realtimeGC 567b7d5a6a tests: Trim .txt files trailing whitespace il y a 9 ans
rodfiles 7630cd076b updated test case il y a 8 ans
seq 3c773c189f fixes #4973 il y a 8 ans
sets d1f6ddfd64 Add counterpart to containsOrIncl for excl (#6360) il y a 7 ans
showoff 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
specialops 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
statictypes 36c4f0a89c close #1051 il y a 7 ans
stdlib ce04288d64 isAlphaNumberic and isDigit improvement + tests (#6579) il y a 7 ans
system 55cb959a68 make tests green again; closes #5861 il y a 7 ans
template 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
testament fa02ffaeba made 'testament all' run in parallel il y a 7 ans
testdata abe5cb82a0 Fix for #5134 (parseJson(string) should fail on leftover data) (#5203) il y a 8 ans
threads ddc131cf07 the parser finally parses 'echo {1,2}' as it should il y a 7 ans
trmacros 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
tuples 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
typerel 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
types 57edf619fe fixes #6016 union alias trigger bad codegen (#6117) il y a 7 ans
untestable 61a50d9c8c Fixes #6571 (#6578) il y a 7 ans
usingstmt 000b8afd26 Remove expr/stmt (#5857) il y a 7 ans
varres ddc131cf07 the parser finally parses 'echo {1,2}' as it should il y a 7 ans
varstmt e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
vm ddc131cf07 the parser finally parses 'echo {1,2}' as it should il y a 7 ans
benchmark.nim e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
js.html 72a3e21f28 Removes executable bit for text files. il y a 11 ans
js.nim e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
mmaptest.nim e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
readme.md 9b465a2361 Add readme to tests. Add fileDir option to testament & create nimble test. il y a 7 ans
rectest.nim e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
stckovfl.nim e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
test_nimscript.nims 2c146445bc Added deques module, deprecating queues il y a 8 ans

readme.md

This directory contains the test cases.

Each test must have a filename of the form: t*.nim

Note: Tests are only compiled by default. In order to get the tester to execute the compiled binary, you need to specify a spec with an action key (see below for details).

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: compile

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 cat <category>.

The folder rodfiles contains special tests that test incremental compilation via symbol files.

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. It includes a C client and platform specific build files for manual compilation.