diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-06-30 07:58:15 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-30 07:58:15 +0900 |
commit | 4552cfc32939c57bfaacce9aea0416e3a1be908f (patch) | |
tree | 79e9c583aa8690a03a9bef8a50dcecc0684c91d2 /test/psych/test_array.rb | |
parent | 56d545e278577b3cfb3f71905a54f85cd2fba16c (diff) | |
parent | 0ca2d343735444d83a0dd733b52b2893c5084546 (diff) | |
download | psych-4552cfc32939c57bfaacce9aea0416e3a1be908f.zip |
Merge branch 'master' into frozen
Diffstat (limited to 'test/psych/test_array.rb')
-rw-r--r-- | test/psych/test_array.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/psych/test_array.rb b/test/psych/test_array.rb index 11f5f23..f2bbdca 100644 --- a/test/psych/test_array.rb +++ b/test/psych/test_array.rb @@ -15,6 +15,12 @@ module Psych @list = [{ :a => 'b' }, 'foo'] end + def test_enumerator + x = [1, 2, 3, 4] + y = Psych.load Psych.dump x.to_enum + assert_equal x, y + end + def test_another_subclass_with_attributes y = Y.new.tap {|o| o.val = 1} y << "foo" << "bar" |