aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bootstraptest/test_knownbug.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 23a020a771..c2d0624bb8 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -45,3 +45,15 @@ assert_normal_exit %q{
assert_normal_exit %q{
Regexp.union("a", "a")
}
+
+assert_equal 'ok', %q{
+ begin
+ Regexp.union(
+ "a",
+ Regexp.new("\x80".force_encoding("euc-jp")),
+ Regexp.new("\x80".force_encoding("utf-8")))
+ :ng
+ rescue ArgumentError
+ :ok
+ end
+}