diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-12-17 09:12:22 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-12-17 09:12:22 -0800 |
commit | f0ec58031ed3f4ae9f18830151556cfe26a9b80a (patch) | |
tree | 79d8cc8fe193cf13bfe85092b520bb648b8ea542 /test | |
parent | 9843d25b096edfbf9fe5ab29a15c2447158c925d (diff) | |
download | psych-f0ec58031ed3f4ae9f18830151556cfe26a9b80a.zip |
dealing with self referential sets
Diffstat (limited to 'test')
-rw-r--r-- | test/yaml/test_set.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/yaml/test_set.rb b/test/yaml/test_set.rb index 41145ba..e62b6cd 100644 --- a/test/yaml/test_set.rb +++ b/test/yaml/test_set.rb @@ -39,5 +39,10 @@ bar: baz eoyml assert_instance_of(YAML::Set, loaded) end + + def test_set_self_reference + @set['self'] = @set + assert_equal(@set, YAML.load(YAML.dump(@set))) + end end end |