lots of small changes
This commit is contained in:
parent
c0c35839cc
commit
a5ecbf823f
85 changed files with 180 additions and 110 deletions
|
|
@ -65,7 +65,7 @@ proc reindent*(value: string, preset_indent = 0): string =
|
|||
make([ html, xml, glsl, js, css, rst ])
|
||||
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
## Test tags
|
||||
|
||||
const script = js"""
|
||||
|
|
|
|||
|
|
@ -340,6 +340,6 @@ macro tmpl*(body: untyped): untyped =
|
|||
|
||||
|
||||
# Run tests
|
||||
when isMainModule:
|
||||
when true:
|
||||
include otests
|
||||
echo "Success"
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ block t2629:
|
|||
|
||||
let rst_files = concat(glob_rst(), glob_rst("docs"))
|
||||
|
||||
when isMainModule: echo rst_files
|
||||
when true: echo rst_files
|
||||
|
||||
|
||||
block t5417:
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ template mathPerComponent(op: untyped): untyped =
|
|||
mathPerComponent(`***`)
|
||||
# bug #5285
|
||||
when true:
|
||||
if isMainModule:
|
||||
if true:
|
||||
var v1: array[3, float64]
|
||||
var v2: array[3, float64]
|
||||
echo repr(v1 *** v2)
|
||||
|
|
|
|||
|
|
@ -18,5 +18,5 @@ template test_in(a, b, c: untyped): bool {.dirty.} =
|
|||
var result {.gensym.}: bool = false
|
||||
false
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
assert test_in(ret2, "test", str_val)
|
||||
|
|
|
|||
|
|
@ -20,5 +20,5 @@ proc main =
|
|||
var f = Foo.new()
|
||||
echo f.b
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue