some minor fixes

This commit is contained in:
Araq
2014-08-14 22:22:04 +02:00
parent 06ad50b671
commit 4ab56d6be0
4 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ discard """
"""
template myAssert(cond: expr) =
when rand(3) < 3:
when 3 <= 3:
let c = cond.astToStr
if not cond:
echo c, "ugh"

View File

@@ -4,7 +4,7 @@ discard """
0
0
[[a = nil,
b = nil]]
b = nil]]'''
"""
# bug #1475

View File

@@ -53,7 +53,7 @@ const
targetToExt*: array[TTarget, string] = ["c", "cpp", "m", "js"]
targetToCmd*: array[TTarget, string] = ["c", "cpp", "objc", "js"]
when not defined(parseCfgBool):
when not declared(parseCfgBool):
# candidate for the stdlib:
proc parseCfgBool(s: string): bool =
case normalize(s)