Browse files

Regexp.quote(raw, 'n') does not work on Rubinius 1.8 mode

I don't want put a pressure on supporting it because 1.9 mode works
fine.
  • Loading branch information...
1 parent 731368c commit b4d4cf4a15a3d169b924a28b125a1bc6ef9b76c5 @nahi committed May 6, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/test_hexdump.rb
View
4 test/test_hexdump.rb
@@ -9,4 +9,6 @@ def test_encode
str.force_encoding('BINARY') if str.respond_to?(:force_encoding)
assert_equal(["00000000 1a6cbff8 a2398e9e e95b7b7b b2e8bcfe .l...9...[{{...."], HexDump.encode(str))
end
-end
+end if defined?(RUBY_ENGINE) && RUBY_ENGINE != "rbx" && RUBY_VERSION >= "1.9.0"
+# Rubinius 1.8 mode does not support Regexp.quote(raw, 'n') I don't want put
+# a pressure on supporting it because 1.9 mode works fine.

0 comments on commit b4d4cf4

Please sign in to comment.