From badf37eb1fab3ce3fbc5d92f76315f8600fd08fc Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Thu, 10 Feb 2011 09:16:11 -0600 Subject: [PATCH] Add failing test for utf-8 support --- test/test_runtimes.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_runtimes.rb b/test/test_runtimes.rb index 82105ae..89b47c7 100644 --- a/test/test_runtimes.rb +++ b/test/test_runtimes.rb @@ -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