summaryrefslogtreecommitdiff
path: root/test/ruby/test_regexp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_regexp.rb')
-rw-r--r--test/ruby/test_regexp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
index 12a2fa96fc..3324a9e8d9 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -151,7 +151,7 @@ class TestRegexp < Test::Unit::TestCase
assert_equal('/\x00/i', /#{"\0"}/i.inspect)
assert_equal("/\n/i", /#{"\n"}/i.inspect)
s = [0xff].pack("C")
- assert_equal('/\/'+s+'/i', /\/#{s}/i.inspect)
+ assert_equal('/\/\xFF/i', /\/#{s}/i.inspect)
end
def test_char_to_option