summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-09 21:48:05 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-09 21:48:05 +0000
commit401874e72b3fe322a2137f4f48963ad037b016cb (patch)
tree86dcaf5e5f9fd60c13efee3612190c9ee1e04f06 /test/ruby
parentd64e9d6b38bc7acf26a4ba4d91403d1c9135d20a (diff)
downloadruby-401874e72b3fe322a2137f4f48963ad037b016cb.tar.gz
ruby-401874e72b3fe322a2137f4f48963ad037b016cb.tar.xz
ruby-401874e72b3fe322a2137f4f48963ad037b016cb.zip
* re.c (rb_reg_expr_str): use \xHH instead of \OOO.
* regerror.c (to_ascii): ditto. (onig_snprintf_with_pattern): ditto. (onig_snprintf_with_pattern): ditto. * string.c (rb_str_inspect): ditto. (rb_str_dump): ditto. * parse.y (parser_yylex): ditto. * ruby.c (proc_options): ditto. * file.c (rb_f_test): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-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 52b62f642..5cb6c810d 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 ff9b6f8e7..565719783 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