summary refs log tree commit diff stats
path: root/tests/views
Commit message (Expand)AuthorAgeFilesLines
* fixes 'lent T' inside object constructor [backport] (#18911)Andreas Rumpf2021-09-271-0/+17
* closes #18690; make view types stricter [backport] (#18891)Andreas Rumpf2021-09-241-1/+12
* closes #16132 [backport] (#18880)Andreas Rumpf2021-09-221-1/+13
* view types: spec changes (#18226)Andreas Rumpf2021-06-101-5/+4
* close #17636 (#17643)flywind2021-04-061-3/+2
* ensure the Nim compiler works with --experimental:strictFuncs --experimental:...Andreas Rumpf2020-10-262-0/+15
* fixes view types for sizeof() and --gc:orc (#15680)Andreas Rumpf2020-10-221-1/+1
* const view types; fixes some cases from https://github.com/nim-lang/Nim/issue...Andreas Rumpf2020-10-051-0/+26
* better support for view types (#15436)Andreas Rumpf2020-09-302-0/+88
* spec for view types (#15424)Andreas Rumpf2020-09-294-8/+22
* produce runtime type information for reified openArrays (#15415)Andreas Rumpf2020-09-271-0/+42
* better support for slices as views (#15414)Andreas Rumpf2020-09-273-0/+82
color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
switch("path", "$lib/../testament/lib")
  # so we can `import stdtest/foo` inside tests
  # Using $lib/../ instead of $nim/ so you can use a different nim to run tests
  # during local testing, e.g. nim --lib:lib.

## prevent common user config settings to interfere with testament expectations
## Indifidual tests can override this if needed to test for these options.
switch("colors", "off")
switch("listFullPaths", "off")
switch("excessiveStackTrace", "off")
switch("spellSuggest", "0")

# for std/unittest
switch("define", "nimUnittestOutputLevel:PRINT_FAILURES")
switch("define", "nimUnittestColor:off")

switch("define", "nimLegacyTypeMismatch")

hint("Processing", off)
  # dots can cause annoyances; instead, a single test can test `hintProcessing`

# uncomment to enable all flaky tests disabled by this flag
# (works through process calls, e.g. tests that invoke nim).
# switch("define", "nimTestsEnableFlaky")

# switch("hint", "ConvFromXtoItselfNotNeeded")

# experimental API's are enabled in testament, refs https://github.com/timotheecour/Nim/issues/575
switch("define", "nimExperimentalAsyncjsThen")