CIs: attempt to use csources_v1 (#16282)
* CIs: attempt to use csources_v1 * also updated the BSDs * also updated azure pipelines * std modules should not itself use the 'std/' import dir... * compiler has to be careful with std/ for v1 booting
This commit is contained in:
parent
7bce1f8578
commit
a9b62de895
58 changed files with 142 additions and 143 deletions
|
|
@ -108,15 +108,15 @@
|
|||
import std/private/since
|
||||
import std/exitprocs
|
||||
|
||||
import std/[macros, strutils, streams, times, sets, sequtils]
|
||||
import macros, strutils, streams, times, sets, sequtils
|
||||
|
||||
when declared(stdout):
|
||||
import std/os
|
||||
import os
|
||||
|
||||
const useTerminal = not defined(js)
|
||||
|
||||
when useTerminal:
|
||||
import std/terminal
|
||||
import terminal
|
||||
|
||||
type
|
||||
TestStatus* = enum ## The status of a test when it is done.
|
||||
|
|
@ -747,7 +747,7 @@ macro expect*(exceptions: varargs[typed], body: untyped): untyped =
|
|||
of 2: discard parseInt("Hello World!")
|
||||
of 3: raise newException(IOError, "I can't do that Dave.")
|
||||
else: assert 2 + 2 == 5
|
||||
|
||||
|
||||
expect IOError, OSError, ValueError, AssertionDefect:
|
||||
defectiveRobot()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue