summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-27 18:57:06 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-27 18:57:06 -0700
commit6efdbaeb05e9f9200d7c95baaf44ffffa4e8dc6a (patch)
tree50602ce2f6ae3ae7cc378dca2a86b822fd973f26 /test
parent15b81ea96f80efc5042b1200bbaf13aa59e90e2d (diff)
downloadpsych-6efdbaeb05e9f9200d7c95baaf44ffffa4e8dc6a.zip
testing sequence attributes
Diffstat (limited to 'test')
-rw-r--r--test/psych/test_tree_builder.rb4
-rw-r--r--test/test_psych.rb6
2 files changed, 7 insertions, 3 deletions
diff --git a/test/psych/test_tree_builder.rb b/test/psych/test_tree_builder.rb
index 428fe68..0e3c59e 100644
--- a/test/psych/test_tree_builder.rb
+++ b/test/psych/test_tree_builder.rb
@@ -36,6 +36,10 @@ module Psych
seq = doc.children.first
assert_instance_of Nodes::Sequence, seq
+ assert_nil seq.anchor
+ assert_nil seq.tag
+ assert_equal true, seq.implicit
+ assert_equal BLOCK_SEQUENCE_STYLE, seq.style
end
end
end
diff --git a/test/test_psych.rb b/test/test_psych.rb
index dbf892a..cc32740 100644
--- a/test/test_psych.rb
+++ b/test/test_psych.rb
@@ -1,9 +1,9 @@
require 'helper'
class TestPsych < Test::Unit::TestCase
- def test_simple
- assert_equal 'foo', Psych.parse("--- foo\n")
- end
+ #def test_simple
+ # assert_equal 'foo', Psych.parse("--- foo\n")
+ #end
def test_libyaml_version
assert Psych.libyaml_version