ringabout fe48de4406 fixes #23837; cursor now processes distinct types with a destructor (#23845) преди 6 месеца
..
alias 84fab7f39b fix #19349 incompatible type when mixing float32 and cfloat in generics (#20551) преди 2 години
align 5334dc921f fixes #22419; async/closure environment does not align local variables (#22425) преди 1 година
alloc 69d0b73d66 fixes #22510 (#23100) преди 8 месеца
arc e53a2ed19b fixes #20865; fixes #20987; Missing bounds check in array slicing (#23814) преди 7 месеца
array 3ab8b6b2cf error on large integer types as array index range (#23229) преди 1 година
assert cf083af262 tests: explicitly enable stack traces where needed (#21236) преди 1 година
assign 8c56e806ae closes #12464; adds a test case (#22967) преди 1 година
astoverload 20b5f31c03 new tester; all tests categorized преди 11 години
astspec 5b26f2bd81 fix deprecated example (#18721) преди 3 години
async 39fbd30513 Fix OSError `errorCode` field is not assigned a value (#22954) преди 1 година
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) преди 4 години
c 08f1eac8ac fixes#23665; rework spawn with gcc 14 and fixes other tests (#23660) преди 8 месеца
casestmt b3b87f0f8a Mark `macros.error` as `.noreturn.` (#23081) преди 1 година
cast c0994c2dbd [JS] Fix casting to ints (#22327) преди 1 година
ccgbugs 1dcc364cd2 [backport] fixes #23796; remove extra indirection for args in importc'ed functions in cpp (#23800) преди 7 месеца
ccgbugs2 61145b1d4b fixes #22354; Wrong C++ codegen for default parameter values in ORC (#22819) преди 1 година
closure 094a29eb31 add test case for #19095 (#22566) преди 1 година
codegen 3b4078a7f8 Skips generic owner when mangling instances (#23563) преди 9 месеца
collections 5bd1afc3f9 fixes #17197; fixes #22560; fixes the dest of newSeqOfCap in refc (#22594) преди 1 година
compiler e323b91a32 correct grammar (ref #20199) and add check for grammar.txt (#20494) преди 2 години
compilerapi 2f109595e9 reset macrocache after each script evaluation (#22195) преди 1 година
compiles d102b2f54c deprecate unsafeAddr; extend addr (#19373) преди 3 години
concepts a5c1a6f042 adds another fix for concept in JS (#23535) преди 9 месеца
constructors b97d603cd0 some test cleanups & category reorganization (#22010) преди 1 година
controlflow b7a275da1d fixes regression; block can have arbitrary exit points; too hard for a simple analysis (#23839) преди 6 месеца
converter 379299a5ac fixes #22286; enforce Non-var T destructors by `nimPreviewNonVarDestructor` (#22975) преди 1 година
coroutines 4fa86422c0 stdlib tests now check refc too (#21664) преди 1 година
cpp 903b1b1016 This test for issue 9739 never needed to depend upon hash order (#23791) преди 7 месеца
defer 0e555ade31 Add test for #22309 (#22316) преди 1 година
destructor fe48de4406 fixes #23837; cursor now processes distinct types with a destructor (#23845) преди 6 месеца
dir with space fa058773db fixes #10042 (allow spaces in import) (#10504) преди 6 години
discard 648f82c2ed fixes semi-regression; discard check now skips `nkHiddenSubConv` (#23840) преди 6 месеца
distinct 95e5ad6927 fixes #22902; borrow from proc return type mismatch (#22908) преди 1 година
dll a4781dc4bc use old typeinfo generation for hot code reloading (#22518) преди 1 година
effects 62c5b8b287 fixes #23129; fixes generated hooks raise unlisted Exception, which never raise (#23195) преди 1 година
enum c91b33aaba re-enable tests (#23591) преди 9 месеца
errmsgs cd946084ab make routine implicitly gensym when other gensym symbol exists again (#23842) преди 6 месеца
exception 09d0fda7fd fixes #22469; generates nimTestErrorFlag for top level statements (#22472) преди 1 година
exprs d2f36c071b Exclude block from endsInNoReturn, fix regression (#22632) преди 1 година
float 7fababd583 make float32 literals stringifying behave in JS the same as in C (#22500) преди 1 година
fragmentation 381498b0db tests: disable flaky tests for now; closes #9421 преди 6 години
gc 379299a5ac fixes #22286; enforce Non-var T destructors by `nimPreviewNonVarDestructor` (#22975) преди 1 година
generics 173b8a8c58 fixes #3011; handles meta fields defined in the ref object (#23818) преди 7 месеца
global 95c751a9e4 fix #15005; [ARC] Global variable declared in a block is destroyed too… (#22388) преди 1 година
ic e6ca13ec85 Instantiates generics in the module that uses it (#22513) преди 1 година
import 4eaa3b028c fixes #23167; take `nkOpenSymChoice` into consideration caused by templates [backport] (#23168) преди 1 година
import_in_config 154db46db8 fixes a regression that caused --import in a config file to break things преди 8 години
importalls 02be212dae clean up SOME pending/xxx/issue link comments (#21826) преди 1 година
init 9b378296f6 fixes addr/hiddenAddr in strictdefs (#23477) преди 10 месеца
int 4faa15f3ad Replacement PR for https://github.com/nim-lang/Nim/pull/23779 that (#23793) преди 7 месеца
isolate f4a9b258c3 isolation spec update; WIP (#21843) преди 1 година
iter 05df263b84 Optimize closure iterator locals (#23787) преди 7 месеца
js 4faa15f3ad Replacement PR for https://github.com/nim-lang/Nim/pull/23779 that (#23793) преди 7 месеца
lent 86ff37fab8 fixes #22138 (#22221) преди 1 година
let 9acbf99efb Allow let to not have value when using importc (#14258) преди 4 години
lexer 71801c2b8f fix dot calls with resolved symbols in templates (#22076) преди 1 година
lookups 948fc29bb2 adapt semOpAux to opt-in symchoices (#23750) преди 7 месеца
macros 051a536275 fixes #23784; don't allow fold paths containing `nkAddr` (#23792) преди 7 месеца
manyloc 6eb722c47d replace getOpt with getopt (#22515) преди 1 година
metatype 56c95758b2 fixes #23445; fixes #23418 [backport] (#23699) преди 8 месеца
method b5f5b74fc8 enable vtable implementation for C++ and make it an experimental feature (#23004) преди 1 година
misc 2d1533f34f fixes #5901 #21211; don't fold cast function types because of gcc 14 (#23683) преди 8 месеца
modules fb6c805568 propagate efWantStmt in semWhen (#23400) преди 11 месеца
msgs b97d603cd0 some test cleanups & category reorganization (#22010) преди 1 година
navigator 38f876dd48 fixes #19795; fixes #11852; fixes #19974; remove parsing pipeline, Nim now parses the whole module at one time (#21379) преди 1 година
newconfig b97d603cd0 some test cleanups & category reorganization (#22010) преди 1 година
nimble 31a8cf16bb testament spec: remove errmsg alias of errormsg (#16188) преди 4 години
nimdoc cecaf9c56b fixes #22939; fixes #16890; push should but doesn't apply to importc … (#22944) преди 1 година
niminaction 08f1eac8ac fixes#23665; rework spawn with gcc 14 and fixes other tests (#23660) преди 8 месеца
notnil e0ad71a912 make binary `not` not parse complex expressions on right side (#22078) преди 1 година
objects 96513b2506 fixes #22926; Different type inferred when setting a default value for an array field (#22999) преди 1 година
objvariant 39f2df1972 fixes #23295; don't expand constants for complex structures (#23297) преди 11 месеца
openarray d09c3c0f58 fixes #23321; Error: internal error: openArrayLoc: ref array[0..0, int] (#23548) преди 9 месеца
options beaac609ab adds nimbasePattern compiler option (#22144) преди 1 година
osproc 58b36bd85e fixes #23825; Busy wait on waitid, sleeping at regular intervals (#23826) преди 7 месеца
overflow 00be8f287a trigger range check with new type inference on nkIntLit [backport:1.6] (#23179) преди 1 година
overload 22ba5abd63 fixes 23823; array static overload - again (#23824) преди 7 месеца
package d30c6419a0 Refactor and doc package handling, module name mangling (#19821) преди 2 години
package_level_objects c17f6c7837 new feature: package level objects преди 7 години
parallel 4faa15f3ad Replacement PR for https://github.com/nim-lang/Nim/pull/23779 that (#23793) преди 7 месеца
parser 81756d1810 second test case haul for templates and generics (#22728) преди 1 година
pragmas 646bd99d46 [backport] fixes #23711; C code contains backtick`gensym (#23716) преди 7 месеца
proc f46f26e79a don't use previous bindings of `auto` for routine return types (#23207) преди 1 година
range cbd9fee22a fix #19678 Broken behavior with string ranges in case labels (#20475) преди 2 години
realtimeGC 1e0165186b testament: remove deadcode related to realtimeGC, testC, callCCompiler (#18087) преди 3 години
refc 56ed4e0bb9 fixes #23759; rework move for refc (#23764) преди 7 месеца
sandwich 2f213db7ee fixes #11225; generic sandwich problems; [backport:1.2] (#17255) преди 3 години
sets 3bdb531f90 fixes testament targets field (#23472) преди 10 месеца
showoff ccc706ff12 add test case to close #7974 (#22023) преди 1 година
specialops 5f9038a5d7 make expressions opt in to symchoices (#22716) преди 1 година
statictypes 91efa49550 Overloads passed to static proc parameters now convert to the desired… (#23063) преди 1 година
stdlib 4faa15f3ad Replacement PR for https://github.com/nim-lang/Nim/pull/23779 that (#23793) преди 7 месеца
stmt ecf9efa397 document general use of `_`, error message, fixes (#21584) преди 1 година
strictnotnil 6289b002b6 [Testament] Extend and document message testing aids (#19996) преди 2 години
stylecheck 365a753eed Fix some `styleCheck` bugs (#20095) преди 1 година
system 4faa15f3ad Replacement PR for https://github.com/nim-lang/Nim/pull/23779 that (#23793) преди 7 месеца
template cd946084ab make routine implicitly gensym when other gensym symbol exists again (#23842) преди 6 месеца
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 69d0b73d66 fixes #22510 (#23100) преди 8 месеца
tools 20446b437b make `proc` not implicitly convert to `pointer` with a preview define (#21953) преди 1 година
trmacros 38f876dd48 fixes #19795; fixes #11852; fixes #19974; remove parsing pipeline, Nim now parses the whole module at one time (#21379) преди 1 година
tuples cfd69bad1a fix wrong subtype relation in tuples & infer some conversions (#23228) преди 1 година
typerel 6ed33b6d61 type graph refactor; part 3 (#23064) преди 1 година
types ca77423ffc `varargs[typed]` should behave more like `typed` (#23303) преди 11 месеца
untestable 5491e0c274 re-enable badssl test (#21775) преди 1 година
usingstmt f6eb1d4d7d remove {.this.} pragma, deprecated since 0.19 (#20201) преди 2 години
valgrind 55a33e1664 testament: support disabled:osx as alias to disabled:macosx (#17124) преди 4 години
varres e15e19308e Revert adding generic `V: Ordinal` parameter to `succ`, `pred`, `inc`, `dec` (#22328) преди 1 година
varstmt 1e9a3c438b fixes #18104; tranform one liner var decl before templates expansion (#23294) преди 1 година
views ae4b47c5bd fixes #20048; fixes #15746; don't sink object fields if it's of openarray type (#23608) преди 8 месеца
vm 9092244f87 closes #22095; adds a test case (#23822) преди 7 месеца
whenstmt 04c48e3c5b fix #19426 compile error using when/elif/else and typedesc in template (#20550) преди 2 години
xml 7931bdac95 Feature/xmltree additions (#20988) преди 2 години
ast_pattern_matching.nim 86f7f4ffa5 remove deprecated type pragma syntax, fix bugs that required it (#20199) преди 2 години
config.nims b5f5b74fc8 enable vtable implementation for C++ and make it an experimental feature (#23004) преди 1 година
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 92d6fb86c6 Enable customizing PageShift to set PageSize for embedded targets (#19129) преди 3 години
readme.md f5ec4fbde3 Update the reference to parseSpec (#21289) преди 2 години
rectest.nim e80465dacf tests: Trim .nim files trailing whitespace преди 9 години
stckovfl.nim e80465dacf tests: Trim .nim files trailing whitespace преди 9 години
test_nimscript.nims afc30ca879 fixes #19863; move sha1, md5 to nimble packages for 2.0 (#21702) преди 1 година

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.