araq 2479407d1a Merge branch 'devel' into araq-orc-hotfix 1 ano atrás
..
actiontable 7f18d7cbc1 Merge tests into a larger file (part 1 of ∞) (#9318) 6 anos atrás
alias 84fab7f39b fix #19349 incompatible type when mixing float32 and cfloat in generics (#20551) 2 anos atrás
align 7e1ae35195 testament: error instead of silently ignore invalid targets; remove pointless alias target vs targets; document matrix; DRY (#16343) 4 anos atrás
ambsym 2449c37137 better procvar ambiguity errors, clean up after #20457 (#20932) 2 anos atrás
arc 2479407d1a Merge branch 'devel' into araq-orc-hotfix 1 ano atrás
arithm 5d469686b0 fix #20829 Regression in int64 type matching since (#21019) 2 anos atrás
array c598d0b6ec fix #15117 zero size array cause incorrect codegen for VCC compiler (#21197) 2 anos atrás
assert cf083af262 tests: explicitly enable stack traces where needed (#21236) 1 ano atrás
assign 7739e23420 defaults to ORC (#19972) 2 anos atrás
astoverload 20b5f31c03 new tester; all tests categorized 11 anos atrás
astspec 5b26f2bd81 fix deprecated example (#18721) 3 anos atrás
async d4d28f2ffe Allow `futureLogging` in release builds (#21448) 1 ano atrás
avr 430a179307 default threads on (#19368) 2 anos atrás
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 anos atrás
bind 5602183234 'lock levels' are deprecated, now a noop (#20539) 2 anos atrás
borrow 98b2838a30 borrowed procs can have a body now for documentation generation (#20617) 2 anos atrás
casestmt 8cfce70738 fix #18964 Small string case with else statement first in AST evaluat… (#20862) 2 anos atrás
ccgbugs 20b011de19 refactoring in preparation for better, simpler name mangling that wor… (#21667) 1 ano atrás
ccgbugs2 33cd883e27 [add testcase] NRVO does not occur with init procedures (#19462) 2 anos atrás
clearmsg 1105d03644 require errormsg to be specified before file. 6 anos atrás
closure 6d8cf25bd7 deprecate `do:` meaning `do ():` + misc cleanup (#20927) 2 anos atrás
cnstseq 1105d03644 require errormsg to be specified before file. 6 anos atrás
collections 723a71bd22 follow up #20109; remove `shallow` seqs/strings for ORC (#20502) 2 anos atrás
compilepragma 7e9cda7dba fixes #10299 (#11324) 5 anos atrás
compiler e323b91a32 correct grammar (ref #20199) and add check for grammar.txt (#20494) 2 anos atrás
compilerapi 4647c7b596 fixes #14409; fixes #10674 VM callbacks switch to table-index seqs (#21297) 1 ano atrás
compilerfeatures 70a30317f7 fix #16693: testament spec nimout too lax (#16698) 3 anos atrás
compiles d102b2f54c deprecate unsafeAddr; extend addr (#19373) 2 anos atrás
concat 20b5f31c03 new tester; all tests categorized 11 anos atrás
concepts cc08a9015e fixes #21263; consider all candidates for concept matches (#21265) 1 ano atrás
constr ea2f2775a7 fix #18990 Regression in proc symbol resolution; Error: attempting to… (#20554) 2 anos atrás
constraints 1105d03644 require errormsg to be specified before file. 6 anos atrás
constructors be95f8fdfa Turn some of the errors back into warnings 4 anos atrás
controlflow c5eb3fd4f0 fixes #9839; fixes noReturn pragma doesn't work for non-simple templates (#21048) 2 anos atrás
converter 741fed716e Use `analyseIfAddressTaken` logic for checking if address is taken in converter (#21533) 1 ano atrás
coroutines 4fa86422c0 stdlib tests now check refc too (#21664) 1 ano atrás
cpp 1431f90d8c Revert "Fix #13093 C++ Atomics: operator= is implicitly deleted because the default definition would be ill-formed " (#21307) 1 ano atrás
defaultprocparam 7c359a062c Add testcase for #12252 (#15676) 4 anos atrás
deprecated 6f96c4bc96 ref #20846; give a deprecation message for overriding `=` hook (#21020) 2 anos atrás
destructor b5ee81fd23 fix #18977; disallow change branch of an object variant in ORC (#21526) 1 ano atrás
dir with space fa058773db fixes #10042 (allow spaces in import) (#10504) 5 anos atrás
discard fc7385bfda fixes #21360; discarding empty seqs/arrays now raises errors (#21374) 1 ano atrás
distinct 1182216381 remove a special case in sigmatch; distinct pointer types no longer match `nil` type (#20251) 2 anos atrás
distros e63fc95bd4 fix tdistros test which was failing on Nightlies 4 anos atrás
dll 779b4e307b don't use `{.rtl.}` for generics, otherwise `-d:useNimRtl` gives `ambiguous identifier` nimrtl error (#18406) 3 anos atrás
effects afc30ca879 fixes #19863; move sha1, md5 to nimble packages for 2.0 (#21702) 1 ano atrás
enum 8cf5643621 fixes #21280; Enum with int64.high() value crashes compiler (#21285) 1 ano atrás
errmsgs c2bcfd8cd9 cheap fix for #10853 + better tuple subscript error message (#21767) 1 ano atrás
exception d54a7f078d fixes #21261; always checking `nimTestErrorFlag` in the main module (#21288) 1 ano atrás
exprs 70a30317f7 fix #16693: testament spec nimout too lax (#16698) 3 anos atrás
fields 6d442a40a6 use doAssert in tests (#16486) 4 anos atrás
float 06cd15663d fixes ptr to cstring warnings[backport] (#20848) 2 anos atrás
fragmentation 381498b0db tests: disable flaky tests for now; closes #9421 6 anos atrás
friends e80465dacf tests: Trim .nim files trailing whitespace 9 anos atrás
gc 4c46358db1 remove shallowCopy for ARC/ORC (#20070) 2 anos atrás
generics e92d7681bb consistent use of scForceOpen for generic dot field symbols (#21738) 1 ano atrás
gensym 7739e23420 defaults to ORC (#19972) 2 anos atrás
global 354eb2a86c fix #20866 [ORC] Bad codegen for global pointer to iterator (#20876) 2 anos atrás
ic 512517c223 fixes #18146; fixes #19372; disable tlsEmulation on windows; static link pthreads with mingw (#21668) 1 ano atrás
import c136ebf1ed implements #21620: allowing to import multiple modules with shared names (#21628) 1 ano atrás
import_in_config 154db46db8 fixes a regression that caused --import in a config file to break things 8 anos atrás
importalls 78e2d299df typo: nonexistant => nonexistent (#17918) 3 anos atrás
init 4388636010 fixes #21043; fixes a named exception in the infixAs expression which generate an implicit uninitialized let statement (#21081) 2 anos atrás
isolate b7c66ce860 fixes #19013 [backport:1.6] (#19111) 3 anos atrás
iter 686c75cef0 `for` loop expression can now have generated `iterator`'s called (#21627) 1 ano atrás
js afc30ca879 fixes #19863; move sha1, md5 to nimble packages for 2.0 (#21702) 1 ano atrás
lent 5602183234 'lock levels' are deprecated, now a noop (#20539) 2 anos atrás
let 9acbf99efb Allow let to not have value when using importc (#14258) 4 anos atrás
lexer f05387045d int64/uint64 as bigint in JS (#21613) 1 ano atrás
lookups d1d141b135 new .redefine pragma for templates, warn on redefinition without it (#20211) 2 anos atrás
macros be06446ffe fix #15691 (#21623) 1 ano atrás
magics d26b1232ee Add `nkFastAsgn` into `semExpr` (#20939) 2 anos atrás
manyloc afc30ca879 fixes #19863; move sha1, md5 to nimble packages for 2.0 (#21702) 1 ano atrás
metatype 91e4381a20 fixes #20155; repr range with distinct types is broken in ORC (#21682) 1 ano atrás
method 0bacdf5fdf fixes #20515; base `method` requires explicit `{.gcsafe.}` to be GC-safe (#20574) 2 anos atrás
misc b54b03d04f tweak spellsuggest; three counts for equal distances candidates by default (#21700) 1 ano atrás
modules 2f547afb0f import brackets support `as` and prefixes [backport] (#21636) 1 ano atrás
namedparams 6c487a6309 fixes #12196 5 anos atrás
navigator 38f876dd48 fixes #19795; fixes #11852; fixes #19974; remove parsing pipeline, Nim now parses the whole module at one time (#21379) 1 ano atrás
newconfig 82319ef00d fix #8219; nim check/dump shouldn't run single nimscript project [backport: 1.6] (#19641) 2 anos atrás
nimble 31a8cf16bb testament spec: remove errmsg alias of errormsg (#16188) 4 anos atrás
nimdoc 1a99bcd6ab runnableExamples imports std/assertions by default (#21658) 1 ano atrás
niminaction 9ba07edb2e build the documentation of official packages (#20986) 2 anos atrás
notnil c86fdfa1ee add testcase for #9466 (#17538) 3 anos atrás
objects ebdff1c7d3 fixes #21801; object field initialization with overloaded functions (#21805) 1 ano atrás
objvariant 9c17a32e0e fix #19266; allow reassign discriminant field (#19567) 2 anos atrás
openarray fa1606c6d6 enable static tests for topenarray (#20620) 2 anos atrás
osproc 06232b7f2e fixes #18058 (#18162) 3 anos atrás
overflow 38f876dd48 fixes #19795; fixes #11852; fixes #19974; remove parsing pipeline, Nim now parses the whole module at one time (#21379) 1 ano atrás
overload 48d41ab375 fixes #20645 (#20646) 2 anos atrás
package d30c6419a0 Refactor and doc package handling, module name mangling (#19821) 2 anos atrás
package_level_objects c17f6c7837 new feature: package level objects 7 anos atrás
parallel 4fa86422c0 stdlib tests now check refc too (#21664) 1 ano atrás
parser 814d3e6818 fix #19430 (#21603) 1 ano atrás
pragmas 44736d26cd error on user pragma args (#21776) 1 ano atrás
proc 4898b054ce warn against `a, b = val` in routine arguments (#21604) 1 ano atrás
procvar 749dbce4c6 Merge tests into a larger file (part 5 of ∞) (#9368) 6 anos atrás
range cbd9fee22a fix #19678 Broken behavior with string ranges in case labels (#20475) 2 anos atrás
rational 7d6cbf290a Error -> Defect for defects (#13908) 4 anos atrás
realtimeGC 1e0165186b testament: remove deadcode related to realtimeGC, testC, callCCompiler (#18087) 3 anos atrás
sandwich 2f213db7ee fixes #11225; generic sandwich problems; [backport:1.2] (#17255) 3 anos atrás
sets d76458a6cd add test for #13764 (#21699) 1 ano atrás
showoff 9df195ef58 style usages part one (openarray => openArray) (#19321) 3 anos atrás
slice 0213c7313b allow `HSlice` bounded by constants of distinct types (#19219) [backport:1.2] 3 anos atrás
specialops 4fa86422c0 stdlib tests now check refc too (#21664) 1 ano atrás
statictypes 4fa86422c0 stdlib tests now check refc too (#21664) 1 ano atrás
stdlib 07233ceca0 fixes #21792; enable checks for sum, prod, cumsummed and cumsum (#21793) 1 ano atrás
stmt ecf9efa397 document general use of `_`, error message, fixes (#21584) 1 ano atrás
strictnotnil 6289b002b6 [Testament] Extend and document message testing aids (#19996) 2 anos atrás
stylecheck 365a753eed Fix some `styleCheck` bugs (#20095) 1 ano atrás
system 380dafcc32 fix iterator equality + add test for proc equality + fix sameType (#21707) 1 ano atrás
template 0032322ea8 fix #21727 (#21729) 1 ano atrás
testament 6289b002b6 [Testament] Extend and document message testing aids (#19996) 2 anos atrás
testdata 8c100a37b9 Add new self-signed 4096 bit certificate to testdata (#19758) 2 anos atrás
threads cdbf5b4699 fixes a severe bug of testament (#20832) 2 anos atrás
tools 38f876dd48 fixes #19795; fixes #11852; fixes #19974; remove parsing pipeline, Nim now parses the whole module at one time (#21379) 1 ano atrás
trmacros 38f876dd48 fixes #19795; fixes #11852; fixes #19974; remove parsing pipeline, Nim now parses the whole module at one time (#21379) 1 ano atrás
tuples 2315b01ae6 tuple unpacking for vars as just sugar, allowing nesting (#21563) 1 ano atrás
typerel 380dafcc32 fix iterator equality + add test for proc equality + fix sameType (#21707) 1 ano atrás
types c2bcfd8cd9 cheap fix for #10853 + better tuple subscript error message (#21767) 1 ano atrás
untestable 6ad246b215 temporarily disable badssl tests (#21710) 1 ano atrás
usingstmt f6eb1d4d7d remove {.this.} pragma, deprecated since 0.19 (#20201) 2 anos atrás
valgrind 55a33e1664 testament: support disabled:osx as alias to disabled:macosx (#17124) 3 anos atrás
varres 4ca2dcb404 Named arguments in commands + many grammar fixes (#20994) 2 anos atrás
varstmt 3b783f7e13 Testament: refactoring; makes the test joiner green 6 anos atrás
views 65223e6f59 fixes #21674; `lent` can be used in the fields or the cast type as a parameter (#21684) 1 ano atrás
vm 53c15f24e9 fixes #21704; remove nfIsRef for genLit in VM (#21765) 1 ano atrás
whenstmt 04c48e3c5b fix #19426 compile error using when/elif/else and typedesc in template (#20550) 2 anos atrás
xml 7931bdac95 Feature/xmltree additions (#20988) 2 anos atrás
ast_pattern_matching.nim 86f7f4ffa5 remove deprecated type pragma syntax, fix bugs that required it (#20199) 2 anos atrás
config.nims 512517c223 fixes #18146; fixes #19372; disable tlsEmulation on windows; static link pthreads with mingw (#21668) 1 ano atrás
dummy.txt a68a4bfaf2 Remove install.txt and readme.txt (#9521) 6 anos atrás
js.html 72a3e21f28 Removes executable bit for text files. 11 anos atrás
js.nim e80465dacf tests: Trim .nim files trailing whitespace 9 anos atrás
m14634.nim 6d442a40a6 use doAssert in tests (#16486) 4 anos atrás
mmaptest.nim 92d6fb86c6 Enable customizing PageShift to set PageSize for embedded targets (#19129) 3 anos atrás
readme.md f5ec4fbde3 Update the reference to parseSpec (#21289) 1 ano atrás
rectest.nim e80465dacf tests: Trim .nim files trailing whitespace 9 anos atrás
stckovfl.nim e80465dacf tests: Trim .nim files trailing whitespace 9 anos atrás
test_nimscript.nims afc30ca879 fixes #19863; move sha1, md5 to nimble packages for 2.0 (#21702) 1 ano atrás

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.