diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_parser.rb | 9 |
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 |