summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-12-17 09:12:22 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2009-12-17 09:12:22 -0800
commitf0ec58031ed3f4ae9f18830151556cfe26a9b80a (patch)
tree79d8cc8fe193cf13bfe85092b520bb648b8ea542 /test
parent9843d25b096edfbf9fe5ab29a15c2447158c925d (diff)
downloadpsych-f0ec58031ed3f4ae9f18830151556cfe26a9b80a.zip
dealing with self referential sets
Diffstat (limited to 'test')
-rw-r--r--test/yaml/test_set.rb5
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