From f4592d7bb0c88ab22e15e632afb70279f119af4e Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 9 Dec 2007 21:48:05 +0000 Subject: * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@14164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_regexp.rb | 2 +- test/ruby/test_string.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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 -- cgit v1.2.3