mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
08eb58d3dd
commit
f4592d7bb0
9 changed files with 28 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue