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

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.