diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-21 17:55:23 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-21 17:55:23 +0000 |
commit | 226c6a1bdc6a50af1b6a7c374a1268f51a5bc23c (patch) | |
tree | d6325105afc9aefcbd3b3e177f8f036e66195e9f /test/psych/visitors | |
parent | 2a1569d6932b843b4b02883685fa05cd3c82d992 (diff) | |
download | ruby-226c6a1bdc6a50af1b6a7c374a1268f51a5bc23c.tar.gz |
* ext/psych/*: update to Psych 2.0.14
* test/psych/*: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych/visitors')
-rw-r--r-- | test/psych/visitors/test_to_ruby.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/psych/visitors/test_to_ruby.rb b/test/psych/visitors/test_to_ruby.rb index c13d980468..5c6ba2b397 100644 --- a/test/psych/visitors/test_to_ruby.rb +++ b/test/psych/visitors/test_to_ruby.rb @@ -321,6 +321,13 @@ description: assert_equal %w{ foo foo }, list assert_equal list[0].object_id, list[1].object_id end + + def test_mapping_with_str_tag + mapping = Nodes::Mapping.new(nil, '!strawberry') + mapping.children << Nodes::Scalar.new('foo') + mapping.children << Nodes::Scalar.new('bar') + assert_equal({'foo' => 'bar'}, mapping.to_ruby) + end end end end |