diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-06 08:00:54 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-06 08:00:54 +0000 |
commit | 56d4257a673d8059d6a0e019d1b10cf8f182132a (patch) | |
tree | 47102de711f43b6de42adfd6390d2dbe1498d56c /test/psych | |
parent | 4194ca02fb2899ce00e6284953d1fd4ee8bdbf38 (diff) | |
download | ruby-56d4257a673d8059d6a0e019d1b10cf8f182132a.tar.gz |
* 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
Diffstat (limited to 'test/psych')
-rw-r--r-- | test/psych/test_yaml.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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')) |