Nim/tests
metagn cfff454cf9
closed ambiguous enum defaults to first overload (#20457)
* closed ambiguous enum defaults to first overload

* add warning

* turn to hint

* work around config
2022-10-01 13:30:23 +02:00
..
actiontable
alias
align
ambsym closed ambiguous enum defaults to first overload (#20457) 2022-10-01 13:30:23 +02:00
arc Update message for checking cast (#20145) 2022-09-28 13:59:27 +02:00
arithm
array
assert
assign defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
astoverload
astspec
async defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
avr default threads on (#19368) 2022-07-06 13:06:41 +02:00
benchmarks
bind remove deprecated type pragma syntax, fix bugs that required it (#20199) 2022-09-03 09:52:13 +02:00
borrow
casestmt support cstring in case (#20130) 2022-09-01 18:10:00 +02:00
ccgbugs fixes #20141; dereferencing pointer to incomplete type error with cast (#20147) 2022-09-28 13:57:47 +02:00
ccgbugs2 [add testcase] NRVO does not occur with init procedures (#19462) 2022-01-29 14:06:54 +01:00
clearmsg
closure closes #11042; add testcase (#19935) 2022-06-28 16:49:31 +08:00
cnstseq
collections defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
compilepragma
compiler Fix #16937; --clib option pass library name to backend C compiler correctly (#19754) 2022-09-01 13:57:17 -04:00
compilerapi
compilerfeatures
compiles
concat
concepts defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
constr
constraints
constructors
controlflow
converter fix #18986; Import/except doesn't work on devel [backport: 1.6] (#19687) 2022-04-06 16:17:09 +02:00
coroutines
cpp moderate system cleanup & refactor (#20355) 2022-09-28 15:28:45 -04:00
defaultprocparam
deprecated store full definition AST for consts, fix noRewrite (#20115) 2022-09-28 15:05:01 +02:00
destructor defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
dir with space
discard
distinct remove a special case in sigmatch; distinct pointer types no longer match nil type (#20251) 2022-08-23 19:27:20 +02:00
distros
dll
effects fix #2614 improve error message when array of proc calling convention… (#20379) 2022-09-26 11:58:13 +02:00
enum closed ambiguous enum defaults to first overload (#20457) 2022-10-01 13:30:23 +02:00
errmsgs fix #2614 improve error message when array of proc calling convention… (#20379) 2022-09-26 11:58:13 +02:00
exception defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
exprs
fields
float
fragmentation
friends
gc remove shallowCopy for ARC/ORC (#20070) 2022-07-26 16:51:01 +02:00
generics defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
gensym defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
global
ic defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
implicit
import_in_config
importalls
init
isolate
iter defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
js fix #20233 Float ranges in case statement in JS crash compiler (#20349) 2022-09-14 17:16:34 +02:00
lent
let
lexer Unicode Operators are no longer experimental (#20444) 2022-09-28 22:37:26 +02:00
lookups new .redefine pragma for templates, warn on redefinition without it (#20211) 2022-08-23 21:41:30 +02:00
macros store full definition AST for consts, fix noRewrite (#20115) 2022-09-28 15:05:01 +02:00
magics defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
manyloc defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
metatype defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
method fixes #20391; make of operator work with generics for ORC (#20395) 2022-09-21 10:29:39 +02:00
misc remove hack for deprecated csize in compiler (#20463) 2022-10-01 09:07:52 +02:00
modules defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
namedparams
navigator
newconfig fix #8219; nim check/dump shouldn't run single nimscript project [backport: 1.6] (#19641) 2022-03-26 11:50:15 +01:00
nimble
nimdoc
niminaction defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
notnil
objects defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
objvariant fix #19266; allow reassign discriminant field (#19567) 2022-02-25 20:33:28 +01:00
openarray
osproc
overflw
overload remove {.this.} pragma, deprecated since 0.19 (#20201) 2022-08-23 19:44:37 +02:00
package Refactor and doc package handling, module name mangling (#19821) 2022-05-30 18:52:19 +02:00
package_level_objects
parallel defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
parser defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
pragmas store full definition AST for consts, fix noRewrite (#20115) 2022-09-28 15:05:01 +02:00
proc
procvar
range moderate system cleanup & refactor (#20355) 2022-09-28 15:28:45 -04:00
rational
realtimeGC
sandwich
sets overloadable enums no longer experimental (#20298) 2022-09-05 23:38:38 +02:00
showoff
slice
specialops
statictypes remove deprecated type pragma syntax, fix bugs that required it (#20199) 2022-09-03 09:52:13 +02:00
stdlib Undeprecate isvalidfilename (#19643) 2022-09-29 12:22:29 +02:00
stmt
strictnotnil [Testament] Extend and document message testing aids (#19996) 2022-09-01 17:52:13 +02:00
stylecheck fixes #20397; fixes stylecheck regression (#20398) 2022-09-21 15:04:33 -04:00
system defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
template defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
testament [Testament] Extend and document message testing aids (#19996) 2022-09-01 17:52:13 +02:00
testdata Add new self-signed 4096 bit certificate to testdata (#19758) 2022-05-08 11:54:04 +02:00
threads defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
tools make koch and tools work with nimPreviewSlimSystem (#20459) 2022-09-30 08:09:40 +08:00
trmacros store full definition AST for consts, fix noRewrite (#20115) 2022-09-28 15:05:01 +02:00
tuples
typerel defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
types remove deprecated type pragma syntax, fix bugs that required it (#20199) 2022-09-03 09:52:13 +02:00
untestable fixes broken ssl tests (#20181) 2022-08-09 11:48:17 +08:00
usingstmt remove {.this.} pragma, deprecated since 0.19 (#20201) 2022-08-23 19:44:37 +02:00
valgrind
varres
varstmt
views fixes #19986; mutable view from immutable location (#20134) 2022-09-28 14:02:07 +02:00
vm moderate system cleanup & refactor (#20355) 2022-09-28 15:28:45 -04:00
whenstmt remove echo statements in tests (part 1) (#20178) 2022-08-23 19:28:51 +02:00
ast_pattern_matching.nim remove deprecated type pragma syntax, fix bugs that required it (#20199) 2022-09-03 09:52:13 +02:00
config.nims fixes #19713; Revert "Remove tlsEmulation enabled from Windows + GCC config" (#19119) (#20327) 2022-09-19 09:16:54 +02:00
dummy.txt
js.html
js.nim
m14634.nim
mmaptest.nim
readme.md [Testament] Extend and document message testing aids (#19996) 2022-09-01 17:52:13 +02:00
rectest.nim
stckovfl.nim
test_nimscript.nims correct typos (#19485) 2022-02-03 11:15:46 +08:00

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.