diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-28 13:40:59 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-28 13:40:59 +0000 |
commit | bb40ff921676511a54c171a83dc3f3afe8b617f3 (patch) | |
tree | bd99e2d01e01f1cd86ee82e01be4a5b4853ab07a /test/syck | |
parent | 67db9280bf681b35ecf10c17ebd936acc3061d4a (diff) |
merges r30763 from trunk into ruby_1_9_2.
--
* ext/psych/lib/psych/visitors/to_ruby.rb: ARG_ENCODING_NONE regular
expressions can round trip. [ruby-core:34969]
* test/psych/test_yaml.rb: test for ARG_ENCODING_NONE regex
* ext/sych/lib/syck/rubytypes.rb: ARG_ENCODING_NONE regular
expressions can round trip.
* test/syck/test_yaml.rb: test for ARG_ENCODING_NONE regex
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/syck')
-rw-r--r-- | test/syck/test_yaml.rb | 5 |
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 |