1
0
Fork 0
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:
Sam Stephenson 2011-02-10 09:24:29 -06:00
commit d009f77d33

View file

@ -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