diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-06 03:12:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-06 03:12:28 +0000 |
commit | 3cd9983c299a3deb9883599317ea2eb0bf51cb6f (patch) | |
tree | 8adb0eda86e06b76a946035033b15464b42fdbbf | |
parent | f5251ade789cdc3ad541b7351912f20408773e17 (diff) | |
download | ruby-3cd9983c299a3deb9883599317ea2eb0bf51cb6f.tar.gz |
test_env.rb: escape
* test/ruby/test_env.rb (TestEnv#test_utf8): escape non-ASCII
string with \u explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_env.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb index 364f88e00a..f7c6e61de5 100644 --- a/test/ruby/test_env.rb +++ b/test/ruby/test_env.rb @@ -485,7 +485,7 @@ class TestEnv < Test::Unit::TestCase if Encoding.find("locale") == Encoding::UTF_8 def test_utf8 - text = "testing åáâäãāあ" + text = "testing \u{e5 e1 e2 e4 e3 101 3042}" test = ENV["test"] ENV["test"] = text assert_equal text, ENV["test"] |