summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-26 21:42:03 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-26 21:42:03 -0700
commit850df20bf83d182703d075951bfb95fb4531748a (patch)
tree31b0fa124ab273b1fa2b3d9b2531dc8782f6c519 /test
parente2dc5ad3f9b8da92fce87d049d1a3681ba52adb8 (diff)
downloadpsych-850df20bf83d182703d075951bfb95fb4531748a.zip
start docuemnt flushed out
Diffstat (limited to 'test')
-rw-r--r--test/psych/test_parser.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/psych/test_parser.rb b/test/psych/test_parser.rb
index 4a12015..187bace 100644
--- a/test/psych/test_parser.rb
+++ b/test/psych/test_parser.rb
@@ -33,14 +33,19 @@ module Psych
assert_called :start_stream
end
+ def test_start_document_implicit
+ @parser.parse("\"foo\"\n")
+ assert_called :start_document, [[], [], true]
+ end
+
def test_start_document_version
@parser.parse("%YAML 1.1\n---\n\"foo\"\n")
- assert_called :start_document, [[1,1], []]
+ assert_called :start_document, [[1,1], [], false]
end
def test_start_document_tag
@parser.parse("%TAG !yaml! tag:yaml.org,2002\n---\n!yaml!str \"foo\"\n")
- assert_called :start_document, [[], [['!yaml!', 'tag:yaml.org,2002']]]
+ assert_called :start_document, [[], [['!yaml!', 'tag:yaml.org,2002']], false]
end
def assert_called call, with = nil, parser = @parser