ringabout de8ce6e26b Merge branch 'devel' into araq-fixes-20865 il y a 1 an
..
actiontable 7f18d7cbc1 Merge tests into a larger file (part 1 of ∞) (#9318) il y a 6 ans
alias 84fab7f39b fix #19349 incompatible type when mixing float32 and cfloat in generics (#20551) il y a 2 ans
align 7e1ae35195 testament: error instead of silently ignore invalid targets; remove pointless alias target vs targets; document matrix; DRY (#16343) il y a 4 ans
ambsym 2449c37137 better procvar ambiguity errors, clean up after #20457 (#20932) il y a 2 ans
arc a80f1a324f fixes #21592; create type bound operations for calls in the method dispatcher for ORC (#21594) il y a 1 an
arithm 5d469686b0 fix #20829 Regression in int64 type matching since (#21019) il y a 2 ans
array c598d0b6ec fix #15117 zero size array cause incorrect codegen for VCC compiler (#21197) il y a 2 ans
assert cf083af262 tests: explicitly enable stack traces where needed (#21236) il y a 1 an
assign 7739e23420 defaults to ORC (#19972) il y a 2 ans
astoverload 20b5f31c03 new tester; all tests categorized il y a 11 ans
astspec 5b26f2bd81 fix deprecated example (#18721) il y a 3 ans
async d4d28f2ffe Allow `futureLogging` in release builds (#21448) il y a 1 an
avr 430a179307 default threads on (#19368) il y a 2 ans
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) il y a 3 ans
bind 5602183234 'lock levels' are deprecated, now a noop (#20539) il y a 2 ans
borrow 98b2838a30 borrowed procs can have a body now for documentation generation (#20617) il y a 2 ans
casestmt 8cfce70738 fix #18964 Small string case with else statement first in AST evaluat… (#20862) il y a 2 ans
ccgbugs 7d83dfd0d1 fixes #21505 (overload resolution of explicit constructors for imported C++ types) (#21511) il y a 1 an
ccgbugs2 33cd883e27 [add testcase] NRVO does not occur with init procedures (#19462) il y a 2 ans
clearmsg 1105d03644 require errormsg to be specified before file. il y a 6 ans
closure 6d8cf25bd7 deprecate `do:` meaning `do ():` + misc cleanup (#20927) il y a 2 ans
cnstseq 1105d03644 require errormsg to be specified before file. il y a 6 ans
collections 723a71bd22 follow up #20109; remove `shallow` seqs/strings for ORC (#20502) il y a 2 ans
compilepragma 7e9cda7dba fixes #10299 (#11324) il y a 5 ans
compiler e323b91a32 correct grammar (ref #20199) and add check for grammar.txt (#20494) il y a 2 ans
compilerapi 4647c7b596 fixes #14409; fixes #10674 VM callbacks switch to table-index seqs (#21297) il y a 1 an
compilerfeatures 70a30317f7 fix #16693: testament spec nimout too lax (#16698) il y a 3 ans
compiles d102b2f54c deprecate unsafeAddr; extend addr (#19373) il y a 2 ans
concat 20b5f31c03 new tester; all tests categorized il y a 11 ans
concepts cc08a9015e fixes #21263; consider all candidates for concept matches (#21265) il y a 1 an
constr ea2f2775a7 fix #18990 Regression in proc symbol resolution; Error: attempting to… (#20554) il y a 2 ans
constraints 1105d03644 require errormsg to be specified before file. il y a 6 ans
constructors be95f8fdfa Turn some of the errors back into warnings il y a 4 ans
controlflow c5eb3fd4f0 fixes #9839; fixes noReturn pragma doesn't work for non-simple templates (#21048) il y a 2 ans
converter 741fed716e Use `analyseIfAddressTaken` logic for checking if address is taken in converter (#21533) il y a 1 an
coroutines dfe6797023 fix #15628 (#16387) il y a 3 ans
cpp 1431f90d8c Revert "Fix #13093 C++ Atomics: operator= is implicitly deleted because the default definition would be ill-formed " (#21307) il y a 1 an
defaultprocparam 7c359a062c Add testcase for #12252 (#15676) il y a 4 ans
deprecated 6f96c4bc96 ref #20846; give a deprecation message for overriding `=` hook (#21020) il y a 2 ans
destructor b5ee81fd23 fix #18977; disallow change branch of an object variant in ORC (#21526) il y a 1 an
dir with space fa058773db fixes #10042 (allow spaces in import) (#10504) il y a 5 ans
discard fc7385bfda fixes #21360; discarding empty seqs/arrays now raises errors (#21374) il y a 1 an
distinct 1182216381 remove a special case in sigmatch; distinct pointer types no longer match `nil` type (#20251) il y a 2 ans
distros e63fc95bd4 fix tdistros test which was failing on Nightlies il y a 4 ans
dll 779b4e307b don't use `{.rtl.}` for generics, otherwise `-d:useNimRtl` gives `ambiguous identifier` nimrtl error (#18406) il y a 3 ans
effects 8a19ac2070 fixes #21393 and misc style changes (#21419) il y a 1 an
enum 51f410e1d5 megatest now checks refc too (#21341) il y a 1 an
errmsgs d5719c47dc make --exceptions:quirky work with C++ (#21581) il y a 1 an
exception d54a7f078d fixes #21261; always checking `nimTestErrorFlag` in the main module (#21288) il y a 1 an
exprs 70a30317f7 fix #16693: testament spec nimout too lax (#16698) il y a 3 ans
fields 6d442a40a6 use doAssert in tests (#16486) il y a 4 ans
float 06cd15663d fixes ptr to cstring warnings[backport] (#20848) il y a 2 ans
fragmentation 381498b0db tests: disable flaky tests for now; closes #9421 il y a 6 ans
friends e80465dacf tests: Trim .nim files trailing whitespace il y a 9 ans
gc 4c46358db1 remove shallowCopy for ARC/ORC (#20070) il y a 2 ans
generics c814c4d993 fixes #3770; templates with untyped parameters resolve private fields wrongly in generics (#21554) il y a 1 an
gensym 7739e23420 defaults to ORC (#19972) il y a 2 ans
global 354eb2a86c fix #20866 [ORC] Bad codegen for global pointer to iterator (#20876) il y a 2 ans
ic 7739e23420 defaults to ORC (#19972) il y a 2 ans
import ffadc75afe fixes #21496; Ambiguous calls compiles when module name are equal (#21500) il y a 1 an
import_in_config 154db46db8 fixes a regression that caused --import in a config file to break things il y a 8 ans
importalls 78e2d299df typo: nonexistant => nonexistent (#17918) il y a 3 ans
init 4388636010 fixes #21043; fixes a named exception in the infixAs expression which generate an implicit uninitialized let statement (#21081) il y a 2 ans
isolate b7c66ce860 fixes #19013 [backport:1.6] (#19111) il y a 3 ans
iter f2dad94902 fixes #21306; fixes #20485; don't transform yields in the var section when introducing new local vars [backport: 1.6] (#21489) il y a 1 an
js 4ae598762e fixes #21439; Add tyOpenArray to genTypeInfo. (#21440) il y a 1 an
lent 5602183234 'lock levels' are deprecated, now a noop (#20539) il y a 2 ans
let 9acbf99efb Allow let to not have value when using importc (#14258) il y a 4 ans
lexer 0b1d1b7886 fixes #15688; handle `strongSpace` overflow issues (#20724) il y a 2 ans
lookups d1d141b135 new .redefine pragma for templates, warn on redefinition without it (#20211) il y a 2 ans
macros 0c6f14af04 macros: Extend treeTraverse intVal range to nnkUInt64Lit (#21597) il y a 1 an
magics d26b1232ee Add `nkFastAsgn` into `semExpr` (#20939) il y a 2 ans
manyloc 7739e23420 defaults to ORC (#19972) il y a 2 ans
metatype a9d0124b5d Made generic type classes work with types using static parameters (#21528) il y a 1 an
method 0bacdf5fdf fixes #20515; base `method` requires explicit `{.gcsafe.}` to be GC-safe (#20574) il y a 2 ans
misc 2315b01ae6 tuple unpacking for vars as just sugar, allowing nesting (#21563) il y a 1 an
modules fd4e3ae3e4 add a prepass for codeReordering (#21513) il y a 1 an
namedparams 6c487a6309 fixes #12196 il y a 5 ans
navigator 38f876dd48 fixes #19795; fixes #11852; fixes #19974; remove parsing pipeline, Nim now parses the whole module at one time (#21379) il y a 1 an
newconfig 82319ef00d fix #8219; nim check/dump shouldn't run single nimscript project [backport: 1.6] (#19641) il y a 2 ans
nimble 31a8cf16bb testament spec: remove errmsg alias of errormsg (#16188) il y a 4 ans
nimdoc 38f876dd48 fixes #19795; fixes #11852; fixes #19974; remove parsing pipeline, Nim now parses the whole module at one time (#21379) il y a 1 an
niminaction 9ba07edb2e build the documentation of official packages (#20986) il y a 2 ans
notnil c86fdfa1ee add testcase for #9466 (#17538) il y a 3 ans
objects 0319824322 fixes #21023; Segfault when mixing seqs, orc, variants and futures (#21497) il y a 1 an
objvariant 9c17a32e0e fix #19266; allow reassign discriminant field (#19567) il y a 2 ans
openarray 455c9feaeb fixes #20865; [backport] il y a 2 ans
osproc 06232b7f2e fixes #18058 (#18162) il y a 3 ans
overflow 38f876dd48 fixes #19795; fixes #11852; fixes #19974; remove parsing pipeline, Nim now parses the whole module at one time (#21379) il y a 1 an
overload 48d41ab375 fixes #20645 (#20646) il y a 2 ans
package d30c6419a0 Refactor and doc package handling, module name mangling (#19821) il y a 2 ans
package_level_objects c17f6c7837 new feature: package level objects il y a 7 ans
parallel a9bd78d579 fix #12122 (#21096) il y a 2 ans
parser 2315b01ae6 tuple unpacking for vars as just sugar, allowing nesting (#21563) il y a 1 an
pragmas fd4e3ae3e4 add a prepass for codeReordering (#21513) il y a 1 an
proc ecf9efa397 document general use of `_`, error message, fixes (#21584) il y a 1 an
procvar 749dbce4c6 Merge tests into a larger file (part 5 of ∞) (#9368) il y a 6 ans
range cbd9fee22a fix #19678 Broken behavior with string ranges in case labels (#20475) il y a 2 ans
rational 7d6cbf290a Error -> Defect for defects (#13908) il y a 4 ans
realtimeGC 1e0165186b testament: remove deadcode related to realtimeGC, testC, callCCompiler (#18087) il y a 3 ans
sandwich 2f213db7ee fixes #11225; generic sandwich problems; [backport:1.2] (#17255) il y a 3 ans
sets 0b319fee3d fix #20997 calling system.card[T](x: set[T]) with T of int8 or uint8 … (#21010) il y a 2 ans
showoff 9df195ef58 style usages part one (openarray => openArray) (#19321) il y a 3 ans
slice 0213c7313b allow `HSlice` bounded by constants of distinct types (#19219) [backport:1.2] il y a 3 ans
specialops e896977bd1 closes #1072; add a test case (#21396) il y a 1 an
statictypes c06623bf8c Fix segfault caused by ensuring valueless statics are not evaluated (#21577) il y a 1 an
stdlib 31d3606fe8 fixes #21564; std/bitops: Add explicit type masking for the JS target (#21598) il y a 1 an
stmt ecf9efa397 document general use of `_`, error message, fixes (#21584) il y a 1 an
strictnotnil 6289b002b6 [Testament] Extend and document message testing aids (#19996) il y a 2 ans
stylecheck 89d8c0b246 tests/stylecheck: make sure necessary hints are enabled (#21240) il y a 1 an
system cbf3ed9d92 fixes #21317; 1.6.4 regression; etyBaseIndex should return fat pointers [backport 1.6] (#21320) il y a 1 an
template ecf9efa397 document general use of `_`, error message, fixes (#21584) il y a 1 an
testament 6289b002b6 [Testament] Extend and document message testing aids (#19996) il y a 2 ans
testdata 8c100a37b9 Add new self-signed 4096 bit certificate to testdata (#19758) il y a 2 ans
threads cdbf5b4699 fixes a severe bug of testament (#20832) il y a 2 ans
tools 38f876dd48 fixes #19795; fixes #11852; fixes #19974; remove parsing pipeline, Nim now parses the whole module at one time (#21379) il y a 1 an
trmacros 38f876dd48 fixes #19795; fixes #11852; fixes #19974; remove parsing pipeline, Nim now parses the whole module at one time (#21379) il y a 1 an
tuples 2315b01ae6 tuple unpacking for vars as just sugar, allowing nesting (#21563) il y a 1 an
typerel fc7385bfda fixes #21360; discarding empty seqs/arrays now raises errors (#21374) il y a 1 an
types 64a0355f3f fixes #21377; fixes `@[]` and `{}` type inference as returns in generics (#21475) il y a 1 an
untestable b2c5f8a05f fixes #21461 (#21463) il y a 1 an
usingstmt f6eb1d4d7d remove {.this.} pragma, deprecated since 0.19 (#20201) il y a 2 ans
valgrind 55a33e1664 testament: support disabled:osx as alias to disabled:macosx (#17124) il y a 3 ans
varres 4ca2dcb404 Named arguments in commands + many grammar fixes (#20994) il y a 2 ans
varstmt 3b783f7e13 Testament: refactoring; makes the test joiner green il y a 6 ans
views da0a2fdca2 Unpack mSlice tupleconstr for static openarrays (#20615) il y a 2 ans
vm b2c1dcbbc9 fixes explicit globals in macros (#21502) il y a 1 an
whenstmt 04c48e3c5b fix #19426 compile error using when/elif/else and typedesc in template (#20550) il y a 2 ans
xml 7931bdac95 Feature/xmltree additions (#20988) il y a 2 ans
ast_pattern_matching.nim 86f7f4ffa5 remove deprecated type pragma syntax, fix bugs that required it (#20199) il y a 2 ans
config.nims 761c5a0830 less verbose type mismatch messages (#21191) il y a 2 ans
dummy.txt a68a4bfaf2 Remove install.txt and readme.txt (#9521) il y a 6 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
m14634.nim 6d442a40a6 use doAssert in tests (#16486) il y a 4 ans
mmaptest.nim 92d6fb86c6 Enable customizing PageShift to set PageSize for embedded targets (#19129) il y a 3 ans
readme.md f5ec4fbde3 Update the reference to parseSpec (#21289) il y a 1 an
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 9ba07edb2e build the documentation of official packages (#20986) il y a 2 ans

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.