diff options
Diffstat (limited to 'test/yaml/test_set.rb')
-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 |