aboutsummaryrefslogtreecommitdiffstats
path: root/test/syck/test_yaml.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/syck/test_yaml.rb')
-rw-r--r--test/syck/test_yaml.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/syck/test_yaml.rb b/test/syck/test_yaml.rb
index 3d9d7abe1d..b346de4bee 100644
--- a/test/syck/test_yaml.rb
+++ b/test/syck/test_yaml.rb
@@ -22,6 +22,11 @@ class YAML_Unit_Tests < Test::Unit::TestCase
YAML::ENGINE.yamler = @current_engine
end
+ # [ruby-core:34969]
+ def test_regexp_with_n
+ assert_cycle(Regexp.new('',0,'n'))
+ end
+
#
# Convert between YAML and the object to verify correct parsing and
# emitting