summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_regexp.rb2
-rw-r--r--test/ruby/test_string.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
index 52b62f6421..5cb6c810da 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -37,7 +37,7 @@ class TestRegexp < Test::Unit::TestCase
end
def test_to_s
- assert_equal '(?-mix:\000)', Regexp.new("\0").to_s
+ assert_equal '(?-mix:\x00)', Regexp.new("\0").to_s
end
def test_union
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb
index ff9b6f8e70..5657197834 100644
--- a/test/ruby/test_string.rb
+++ b/test/ruby/test_string.rb
@@ -444,7 +444,7 @@ class TestString < Test::Unit::TestCase
def test_dump
a= S("Test") << 1 << 2 << 3 << 9 << 13 << 10
- assert_equal(S('"Test\\001\\002\\003\\t\\r\\n"'), a.dump)
+ assert_equal(S('"Test\\x01\\x02\\x03\\t\\r\\n"'), a.dump)
end
def test_dup