JS tests cleaned up
This commit is contained in:
parent
02cc9633eb
commit
c91cf3068f
2 changed files with 6 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue