metagn 7e589bcbe4 add bit type overloads of `$` and `repr` (#24865) 2 veckor sedan
..
alias 84fab7f39b fix #19349 incompatible type when mixing float32 and cfloat in generics (#20551) 2 år sedan
align 037f536e7e fixes #22419; async/closure environment does not align local variables (#22425) 1 år sedan
alloc ff1881a4c1 fixes #22510 (#23100) 8 månader sedan
arc 9524edec60 fixes #24850; macro-generated if/else and when/else statements have m… (#24852) 3 veckor sedan
array 2eac7941ff stricter skip for conversions in array indices in transf (#24424) 3 månader sedan
assert cf083af262 tests: explicitly enable stack traces where needed (#21236) 2 år sedan
assign 7739e23420 defaults to ORC (#19972) 2 år sedan
astoverload 20b5f31c03 new tester; all tests categorized 11 år sedan
astspec 5b26f2bd81 fix deprecated example (#18721) 3 år sedan
async 47f1ab7b97 Fix OSError `errorCode` field is not assigned a value (#22954) 1 år sedan
avr 430a179307 default threads on (#19368) 2 år sedan
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 år sedan
c a85c635da8 fixes#23665; rework spawn with gcc 14 and fixes other tests (#23660) 11 månader sedan
casestmt 49cc3c5746 Mark `macros.error` as `.noreturn.` (#23081) 1 år sedan
cast c0994c2dbd [JS] Fix casting to ints (#22327) 1 år sedan
ccgbugs 5fb4662ab1 fixes #18081; fixes #18079; fixes #18080; nested ref/deref'd types (#24335) 4 månader sedan
ccgbugs2 33cd883e27 [add testcase] NRVO does not occur with init procedures (#19462) 3 år sedan
closure e2ef322754 update CI to macos 13 (#24157) 6 månader sedan
codegen b522d1fe24 Dont mangle when targeting cpp (#23335) 11 månader sedan
collections b477c2adcc fixes #17197; fixes #22560; fixes the dest of newSeqOfCap in refc (#22594) 1 år sedan
compiler e323b91a32 correct grammar (ref #20199) and add check for grammar.txt (#20494) 2 år sedan
compilerapi 2f109595e9 reset macrocache after each script evaluation (#22195) 1 år sedan
compiles d102b2f54c deprecate unsafeAddr; extend addr (#19373) 3 år sedan
concepts 3c66401dee Changing generic weight of `tyGenericParam` (#22143) 6 månader sedan
constructors b97d603cd0 some test cleanups & category reorganization (#22010) 1 år sedan
controlflow 8b421d2203 fixes regression; block can have arbitrary exit points; too hard for a simple analysis (#23839) 8 månader sedan
converter 4fe17a2d87 delay markUsed for converters until call is resolved (#24243) 6 månader sedan
coroutines 4fa86422c0 stdlib tests now check refc too (#21664) 2 år sedan
cpp 1df4debbf1 fixes bugs on the Nim manual (#24669) 2 månader sedan
defer 0e555ade31 Add test for #22309 (#22316) 1 år sedan
destructor 63151568b4 fixes #24801; Invalid C codegen generated when destroying distinct seq types (#24835) 3 veckor sedan
dir with space fa058773db fixes #10042 (allow spaces in import) (#10504) 6 år sedan
discard 568a637f0f fixes semi-regression; discard check now skips `nkHiddenSubConv` (#23840) 8 månader sedan
distinct 535556875e fix logic for `dcEqIgnoreDistinct` in `sameType` (#24197) 4 månader sedan
dll 20446b437b make `proc` not implicitly convert to `pointer` with a preview define (#21953) 1 år sedan
effects 83455cf1d5 fixes #23129; fixes generated hooks raise unlisted Exception, which never raise (#23195) 9 månader sedan
enum c18e599f53 ambiguous identifier resolution (#23123) 8 månader sedan
errmsgs 76d834c182 fixes #24258; compiler crash on `len` of `varargs[untyped]` (#24307) 6 månader sedan
exception e2ef322754 update CI to macos 13 (#24157) 6 månader sedan
exprs 9ad184841e Exclude block from endsInNoReturn, fix regression (#22632) 1 år sedan
float f22e5067c5 fixes #21847; let `parseFloat` behave like `strtod` (#21854) 1 år sedan
fragmentation 381498b0db tests: disable flaky tests for now; closes #9421 6 år sedan
gc ac44139084 add retries to testament, use it for GC tests (#24279) 2 månader sedan
generics 5cbc7a6d1b fix regression with generic params in static type (#24075) 4 månader sedan
global 64accd1c57 fixes {.global.} ref typedesc regressions (#22046) 1 år sedan
ic 512517c223 fixes #18146; fixes #19372; disable tlsEmulation on windows; static link pthreads with mingw (#21668) 2 år sedan
import c3d043e980 fixes #23167; take `nkOpenSymChoice` into consideration caused by templates [backport] (#23168) 1 år sedan
import_in_config 154db46db8 fixes a regression that caused --import in a config file to break things 8 år sedan
importalls 02be212dae clean up SOME pending/xxx/issue link comments (#21826) 2 år sedan
init 14dfabb230 fixes #24472; let symbol created by template is reused in nimvm branch (#24473) 4 månader sedan
int 894eee03a5 make `var`/pointer types not match if base type has to be converted (#24130) 7 månader sedan
isolate f4a9b258c3 isolation spec update; WIP (#21843) 1 år sedan
iter dbed9310ba ignore typeof in closure iterators (#24861) 2 veckor sedan
js 2eac7941ff stricter skip for conversions in array indices in transf (#24424) 3 månader sedan
lent 8859f1ddf7 fixes #24034; fixes lent types after taking implicit address (#24035) 4 månader sedan
let 9acbf99efb Allow let to not have value when using importc (#14258) 5 år sedan
lexer 71801c2b8f fix dot calls with resolved symbols in templates (#22076) 1 år sedan
lookups 7821aa94eb remove bad type inference behavior for enum identifiers (#23588) 8 månader sedan
macros c786415eef Set type of object constructor during annotateType (#23852) 4 månader sedan
manyloc afc30ca879 fixes #19863; move sha1, md5 to nimble packages for 2.0 (#21702) 2 år sedan
metatype 2499336fef remove `prev == nil` requirement for typedesc params as type nodes (#24206) 7 månader sedan
method 39d0eb3a58 fixes #22673; Cannot prove that result is initialized for a placehold… (#22915) 1 år sedan
misc 56f9559c69 adds a ubuntu 24.04 matrix with gcc 14 for tests (#23673) 2 månader sedan
modules 8d254a5945 fixes #24053; fixes #18288; relax reorder with push/pop pragmas restrictions; no crossing push/pop barriers (#24061) 7 månader sedan
msgs b97d603cd0 some test cleanups & category reorganization (#22010) 1 år sedan
navigator 38f876dd48 fixes #19795; fixes #11852; fixes #19974; remove parsing pipeline, Nim now parses the whole module at one time (#21379) 2 år sedan
newconfig b97d603cd0 some test cleanups & category reorganization (#22010) 1 år sedan
nimble 31a8cf16bb testament spec: remove errmsg alias of errormsg (#16188) 4 år sedan
nimdoc eb3aa70ffa fixes #22939; fixes #16890; push should but doesn't apply to importc … (#22944) 1 år sedan
niminaction 772ebe6715 disable sfml test on osx (#24615) 3 månader sedan
notnil e0ad71a912 make binary `not` not parse complex expressions on right side (#22078) 1 år sedan
objects 574db65396 make `fillObjectFields` recur over base type (#24854) 3 veckor sedan
objvariant 0c426e7875 fixes #23295; don't expand constants for complex structures (#23297) 4 månader sedan
openarray 06d00dfcf6 fixes #19171; have `openArray` converted from `ptr UncheckedArray` be mutable (#23882) 7 månader sedan
options beaac609ab adds nimbasePattern compiler option (#22144) 1 år sedan
osproc 7d0cdfc79d fixes #5091; Ensure we don't wait on an exited process on Linux (#23743) 7 månader sedan
overflow 76735147b3 trigger range check with new type inference on nkIntLit [backport:1.6] (#23179) 1 år sedan
overload 5c58e7d201 fix crash with tyBuiltInTypeClass matching itself (#24462) 4 månader sedan
package d30c6419a0 Refactor and doc package handling, module name mangling (#19821) 2 år sedan
package_level_objects c17f6c7837 new feature: package level objects 7 år sedan
parallel a5a6a4d39e fixes #22790; use cast suppress AnyEnumConv warnings for enums withou… (#22813) 1 år sedan
parser 3911c90d7b type annotations for variable tuple unpacking, better error messages (#22611) 1 år sedan
pragmas 1ba16876f1 fixes #24167; {.push deprecated.} for templates (#24170) 7 månader sedan
proc 5327498547 gensym anonymous proc symbols (#24422) 4 månader sedan
range 7503bed717 fixes #14522 #22085 #12700 #23132; no range check for uints (#23930) 7 månader sedan
realtimeGC 1e0165186b testament: remove deadcode related to realtimeGC, testC, callCCompiler (#18087) 3 år sedan
refc d259099ef0 fixes #23759; rework move for refc (#23764) 10 månader sedan
sandwich 2f213db7ee fixes #11225; generic sandwich problems; [backport:1.2] (#17255) 4 år sedan
sets eaa8c7ca7a fixes #23422; card regression (#23437) 11 månader sedan
showoff ccc706ff12 add test case to close #7974 (#22023) 1 år sedan
specialops 8a4ee2b84f make expressions opt in to symchoices (#22716) 8 månader sedan
statictypes e582f1ccb3 Revert "Look up generic parameters when found inside semOverloadedCall, fixin… (#23054)" 1 år sedan
stdlib 9524edec60 fixes #24850; macro-generated if/else and when/else statements have m… (#24852) 3 veckor sedan
stmt ecf9efa397 document general use of `_`, error message, fixes (#21584) 2 år sedan
strictnotnil 6289b002b6 [Testament] Extend and document message testing aids (#19996) 2 år sedan
stylecheck 206bbbd940 make linter use lineinfo to check originating package (#24270) 6 månader sedan
system 7e589bcbe4 add bit type overloads of `$` and `repr` (#24865) 2 veckor sedan
template 1ff69eae17 don't mark captured field sym in template as fully used (#24660) 3 månader sedan
testament ac44139084 add retries to testament, use it for GC tests (#24279) 2 månader sedan
testdata 8c100a37b9 Add new self-signed 4096 bit certificate to testdata (#19758) 3 år sedan
threads ff1881a4c1 fixes #22510 (#23100) 8 månader sedan
tools 20446b437b make `proc` not implicitly convert to `pointer` with a preview define (#21953) 1 år sedan
trmacros 38f876dd48 fixes #19795; fixes #11852; fixes #19974; remove parsing pipeline, Nim now parses the whole module at one time (#21379) 2 år sedan
tuples b1e5dd605a fix wrong subtype relation in tuples & infer some conversions (#23228) 8 månader sedan
typerel 380dafcc32 fix iterator equality + add test for proc equality + fix sameType (#21707) 2 år sedan
types fd9d2f5b82 templates/macros use no expected types when return types are specified (#24298) 6 månader sedan
untestable ac882ea696 disable all badssl tests indefinitely (#24403) 2 månader sedan
usingstmt f6eb1d4d7d remove {.this.} pragma, deprecated since 0.19 (#20201) 2 år sedan
valgrind 55a33e1664 testament: support disabled:osx as alias to disabled:macosx (#17124) 4 år sedan
varres 4ca2dcb404 Named arguments in commands + many grammar fixes (#20994) 2 år sedan
varstmt 4e1b5ee702 fixes #18104; tranform one liner var decl before templates expansion (#23294) 4 månader sedan
views 7071e3a080 closes #15778; adds a test case (#23613) 11 månader sedan
vm 56f9559c69 adds a ubuntu 24.04 matrix with gcc 14 for tests (#23673) 2 månader sedan
whenstmt 04c48e3c5b fix #19426 compile error using when/elif/else and typedesc in template (#20550) 2 år sedan
xml 7931bdac95 Feature/xmltree additions (#20988) 2 år sedan
ast_pattern_matching.nim 86f7f4ffa5 remove deprecated type pragma syntax, fix bugs that required it (#20199) 2 år sedan
config.nims 3214174f06 opensym for templates + move behavior of opensymchoice to itself (#24007) 7 månader sedan
dummy.txt a68a4bfaf2 Remove install.txt and readme.txt (#9521) 6 år sedan
js.html 72a3e21f28 Removes executable bit for text files. 12 år sedan
js.nim e80465dacf tests: Trim .nim files trailing whitespace 9 år sedan
m14634.nim 6d442a40a6 use doAssert in tests (#16486) 4 år sedan
mmaptest.nim 92d6fb86c6 Enable customizing PageShift to set PageSize for embedded targets (#19129) 3 år sedan
readme.md f5ec4fbde3 Update the reference to parseSpec (#21289) 2 år sedan
rectest.nim e80465dacf tests: Trim .nim files trailing whitespace 9 år sedan
stckovfl.nim e80465dacf tests: Trim .nim files trailing whitespace 9 år sedan
test_nimscript.nims afc30ca879 fixes #19863; move sha1, md5 to nimble packages for 2.0 (#21702) 2 år sedan

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.