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:
parent
4746921afd
commit
badf37eb1f
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…
Add table
Reference in a new issue