1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00

Add failing test for utf-8 support

This commit is contained in:
Joshua Peek 2011-02-10 09:16:11 -06:00
parent 4746921afd
commit badf37eb1f

View file

@ -13,6 +13,7 @@ module TestRuntime
assert_equal [1, 2], @runtime.exec("return [1, 2]") assert_equal [1, 2], @runtime.exec("return [1, 2]")
assert_equal "hello", @runtime.exec("return 'hello'") assert_equal "hello", @runtime.exec("return 'hello'")
assert_equal({"a"=>1,"b"=>2}, @runtime.exec("return {a:1,b:2}")) assert_equal({"a"=>1,"b"=>2}, @runtime.exec("return {a:1,b:2}"))
assert_equal "café", @runtime.exec("return 'café'")
end end
def test_eval def test_eval
@ -25,6 +26,7 @@ module TestRuntime
assert_equal [1, 2], @runtime.eval("[1, 2]") assert_equal [1, 2], @runtime.eval("[1, 2]")
assert_equal "hello", @runtime.eval("'hello'") assert_equal "hello", @runtime.eval("'hello'")
assert_equal({"a"=>1,"b"=>2}, @runtime.eval("{a:1,b:2}")) assert_equal({"a"=>1,"b"=>2}, @runtime.eval("{a:1,b:2}"))
assert_equal "café", @runtime.eval("'café'")
end end
def test_this_is_global_scope def test_this_is_global_scope