summaryrefslogtreecommitdiff
path: root/test/ruby/test_env.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-06 03:12:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-06 03:12:28 +0000
commit33a05904bbce2eabe4d863e15f36840f568f113f (patch)
tree8adb0eda86e06b76a946035033b15464b42fdbbf /test/ruby/test_env.rb
parent8f91b46db9a9a07834b11d33f1e1ca9671883293 (diff)
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
Diffstat (limited to 'test/ruby/test_env.rb')
-rw-r--r--test/ruby/test_env.rb2
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"]