summary refs log tree commit diff stats
path: root/tests/borrow
Commit message (Expand)AuthorAgeFilesLines
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-2/+2
* made some tests greenAraq2014-08-311-1/+1
* new tester; all tests categorizedAraq2014-01-132-0/+38
:41:05 +0100 prevent common user config to interfere with testament (#10573)' href='/ahoang/Nim/commit/tests/config.nims?h=devel&id=cf8366a56932ecca46b184def5da013697a69d21'>cf8366a56 ^
a236002e5 ^
b8f4ff8b9 ^
a236002e5 ^




82bb4db4b ^




f344a7041 ^
287dec06a ^


6f1289b80 ^



31bb67a30 ^

24445d31b ^
a4e6b242d ^
5c4692fad ^
8535b26a7 ^
8535b26a7 ^
cf0cf32d2 ^
5c4692fad ^
cc0f02d57 ^
b97d603cd ^
5c4692fad ^
e7bac9177 ^
f89ba2c95 ^
379299a5a ^
ef2998778 ^

761c5a083 ^
b5f5b74fc ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47


                                                                               
                                             



                                                                               
 
                                    




                                                                            




                                                         
                                         


                                                                               



                                                            

                                              
                                                                                     
 
                                                                                                 
                                              
                                                 
 
                                                                      
                                            
                                                       
                                                
                                     
                                          
                                              

                                        
                                       
                                 
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("excessiveStackTrace", "off")

when (NimMajor, NimMinor, NimPatch) >= (1,5,1):
  # to make it easier to test against older nim versions, (best effort only)
  switch("filenames", "legacyRelProj")
  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")
# switch("warningAsError", "InheritFromException") # would require fixing a few tests

# experimental APIs are enabled in testament, refs https://github.com/timotheecour/Nim/issues/575
# sync with `kochdocs.docDefines` or refactor.
switch("define", "nimExperimentalLinenoiseExtra")

# preview APIs are expected to be the new default in upcoming versions
switch("define", "nimPreviewFloatRoundtrip")
#switch("define", "nimPreviewDotLikeOps") # deprecated?
switch("define", "nimPreviewJsonutilsHoleyEnum")
switch("define", "nimPreviewHashRef")
switch("define", "nimPreviewRangeDefault")
switch("define", "nimPreviewNonVarDestructor")

switch("warningAserror", "UnnamedBreak")
switch("legacy", "verboseTypeMismatch")
switch("experimental", "vtables")