diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_eval.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb index 790e2887d5..edbda38818 100644 --- a/test/ruby/test_eval.rb +++ b/test/ruby/test_eval.rb @@ -468,4 +468,9 @@ class TestEval < Test::Unit::TestCase result = foo.instance_eval(&foo_pr) assert_equal(1, result, 'Bug #3786, Bug #3860, [ruby-core:32501]') end + + def test_file_encoding + fname = "\u{3042}".encode("euc-jp") + assert_equal(fname, eval("__FILE__", nil, fname, 1)) + end end |