Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add test for encoded utf8

  • Loading branch information...
commit 1bbf120fc16fdb2de402726b15c0830031d0dc7f 1 parent 4beea96
@josh josh authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  test/test_runtime.rb
View
2  test/test_runtime.rb
@@ -18,6 +18,7 @@ def test_exec
assert_equal({"a"=>1,"b"=>2}, @runtime.exec("return {a:1,b:2}"))
assert_equal "café", @runtime.exec("return 'café'")
assert_equal "", @runtime.exec('return "☃"')
+ assert_equal "", @runtime.exec('return "\u2603"')
assert_equal "\\", @runtime.exec('return "\\\\"')
end
@@ -33,6 +34,7 @@ def test_eval
assert_equal({"a"=>1,"b"=>2}, @runtime.eval("{a:1,b:2}"))
assert_equal "café", @runtime.eval("'café'")
assert_equal "", @runtime.eval('"☃"')
+ assert_equal "", @runtime.eval('"\u2603"')
assert_equal "\\", @runtime.eval('"\\\\"')
end

0 comments on commit 1bbf120

Please sign in to comment.
Something went wrong with that request. Please try again.