mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
Merge branch 'master' of github.com:sstephenson/execjs
This commit is contained in:
commit
d009f77d33
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ module TestRuntime
|
|||
assert_equal [1, 2], @runtime.exec("return [1, 2]")
|
||||
assert_equal "hello", @runtime.exec("return 'hello'")
|
||||
assert_equal({"a"=>1,"b"=>2}, @runtime.exec("return {a:1,b:2}"))
|
||||
assert_equal "café", @runtime.exec("return 'café'")
|
||||
end
|
||||
|
||||
def test_eval
|
||||
|
@ -25,6 +26,7 @@ module TestRuntime
|
|||
assert_equal [1, 2], @runtime.eval("[1, 2]")
|
||||
assert_equal "hello", @runtime.eval("'hello'")
|
||||
assert_equal({"a"=>1,"b"=>2}, @runtime.eval("{a:1,b:2}"))
|
||||
assert_equal "café", @runtime.eval("'café'")
|
||||
end
|
||||
|
||||
def test_this_is_global_scope
|
||||
|
|
Loading…
Reference in a new issue