mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-25 12:25:08 +00:00
JS tests cleaned up
This commit is contained in:
@@ -4,12 +4,13 @@ bar 12
|
||||
2
|
||||
foo 12
|
||||
bar 12
|
||||
2'''
|
||||
2
|
||||
'''
|
||||
"""
|
||||
|
||||
# bug #1489
|
||||
proc foo(x: int) = echo "foo: ", x
|
||||
proc bar(y: var int) = echo "bar: ", y
|
||||
proc foo(x: int) = echo "foo ", x
|
||||
proc bar(y: var int) = echo "bar ", y
|
||||
|
||||
var x = 12
|
||||
foo(x)
|
||||
|
||||
@@ -10,9 +10,9 @@ import
|
||||
var
|
||||
inputElement = "1123"
|
||||
|
||||
proc OnButtonClick(inputElement: string) {.exportc.} =
|
||||
proc onButtonClick(inputElement: string) {.exportc.} =
|
||||
let v = $inputElement
|
||||
if v.allCharsInSet(whiteSpace):
|
||||
if v.allCharsInSet(WhiteSpace):
|
||||
echo "only whitespace, hu?"
|
||||
else:
|
||||
var x = parseInt(v)
|
||||
|
||||
Reference in New Issue
Block a user