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.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
index 2c4c970..549b21c 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -74,6 +74,12 @@ class TestRegexp < Test::Unit::TestCase
end
end
+ def test_to_s_extended_subexp
+ re = /#\g#{"\n"}/x
+ re = /#{re}/
+ assert_warn('', '[ruby-core:82328] [Bug #13798]') {re.to_s}
+ end
+
def test_union
assert_equal :ok, begin
Regexp.union(