make JS tests green again

This commit is contained in:
Araq
2017-12-15 11:34:17 +01:00
parent a5e4d2f7a3
commit 8decf0f5ce
2 changed files with 2 additions and 2 deletions

View File

@@ -2252,7 +2252,7 @@ proc gen(p: PProc, n: PNode, r: var TCompRes) =
case n.kind
of nkSym:
genSym(p, n, r)
of nkCharLit..nkUInt32Lit:
of nkCharLit..nkUInt64Lit:
if n.typ.kind == tyBool:
r.res = if n.intVal == 0: rope"false" else: rope"true"
else:

View File

@@ -210,7 +210,7 @@ when isMainModule:
for i, oc in occur:
if oc < 69:
doAssert false, "too few occurrences of " & $i
elif oc > 130:
elif oc > 150:
doAssert false, "too many occurrences of " & $i
var a = [0, 1]