lots of small changes

This commit is contained in:
Arne Döring 2018-12-05 19:03:01 +01:00 • committed by Araq
commit a5ecbf823f
85 changed files with 180 additions and 110 deletions

View file

@ -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"""

View file

@ -340,6 +340,6 @@ macro tmpl*(body: untyped): untyped =
# Run tests
when isMainModule:
when true:
include otests
echo "Success"

View file

@ -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:

View file

@ -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)

View file

@ -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)

View file

@ -20,5 +20,5 @@ proc main =
var f = Foo.new()
echo f.b
when isMainModule:
when true:
main()