make JS tests green
This commit is contained in:
parent
81645deb87
commit
9f31096870
3 changed files with 3 additions and 3 deletions
|
|
@ -64,7 +64,7 @@ block:
|
|||
proc test(): bool =
|
||||
let obj = newJsObject()
|
||||
obj.`?!$` = proc(x, y, z: int, t: cstring): cstring = t & $(x + y + z)
|
||||
obj.`?!$`(1, 2, 3, "Result is: ").to(cstring) == "Result is: 6"
|
||||
obj.`?!$`(1, 2, 3, "Result is: ").to(cstring) == cstring"Result is: 6"
|
||||
echo test()
|
||||
|
||||
# Test JsObject []()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue