JS tests cleaned up

This commit is contained in:
Araq 2014-12-17 01:43:36 +01:00
commit c91cf3068f
2 changed files with 6 additions and 5 deletions

View file

@ -4,12 +4,13 @@ bar 12
2 2
foo 12 foo 12
bar 12 bar 12
2''' 2
'''
""" """
# bug #1489 # bug #1489
proc foo(x: int) = echo "foo: ", x proc foo(x: int) = echo "foo ", x
proc bar(y: var int) = echo "bar: ", y proc bar(y: var int) = echo "bar ", y
var x = 12 var x = 12
foo(x) foo(x)

View file

@ -10,9 +10,9 @@ import
var var
inputElement = "1123" inputElement = "1123"
proc OnButtonClick(inputElement: string) {.exportc.} = proc onButtonClick(inputElement: string) {.exportc.} =
let v = $inputElement let v = $inputElement
if v.allCharsInSet(whiteSpace): if v.allCharsInSet(WhiteSpace):
echo "only whitespace, hu?" echo "only whitespace, hu?"
else: else:
var x = parseInt(v) var x = parseInt(v)