diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-27 18:51:05 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-27 18:51:05 -0700 |
commit | 15b81ea96f80efc5042b1200bbaf13aa59e90e2d (patch) | |
tree | c392693e5f4b3a62344935e5d6d9b843244099de /test | |
parent | 6f404ba338038732d8f3ebbb02b977d1ab42e0a1 (diff) | |
download | psych-15b81ea96f80efc5042b1200bbaf13aa59e90e2d.zip |
adding accessors for document information
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_tree_builder.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/psych/test_tree_builder.rb b/test/psych/test_tree_builder.rb index 62998db..428fe68 100644 --- a/test/psych/test_tree_builder.rb +++ b/test/psych/test_tree_builder.rb @@ -23,6 +23,19 @@ module Psych def test_documents assert_equal 1, @tree.children.length assert_instance_of Nodes::Document, @tree.children.first + doc = @tree.children.first + + assert_equal [1,1], doc.version + assert_equal [], doc.tag_directives + assert_equal false, doc.implicit + end + + def test_sequence + doc = @tree.children.first + assert_equal 1, doc.children.length + + seq = doc.children.first + assert_instance_of Nodes::Sequence, seq end end end |