From 56d4257a673d8059d6a0e019d1b10cf8f182132a Mon Sep 17 00:00:00 2001 From: tenderlove Date: Fri, 6 Feb 2015 08:00:54 +0000 Subject: * ext/psych/lib/psych/visitors/to_ruby.rb: fix support for regular expressions with newlines. tenderlove/psych#222 * test/psych/test_yaml.rb: test for change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/psych/test_yaml.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/psych/test_yaml.rb b/test/psych/test_yaml.rb index cd3e8ee72c..e6281753a5 100644 --- a/test/psych/test_yaml.rb +++ b/test/psych/test_yaml.rb @@ -27,6 +27,10 @@ class Psych_Unit_Tests < Psych::TestCase assert_match "2010-10-10 00:00:00.000000000 Z", yaml end + def test_multiline_regexp + assert_cycle(Regexp.new("foo\nbar")) + end + # [ruby-core:34969] def test_regexp_with_n assert_cycle(Regexp.new('',0,'n')) -- cgit v1.2.3