YAML Test Matrix

Test #PUW8 - Document start on last line

YAML

---
a: b
---

Expected Events

+STR
+DOC ---
+MAP
=VAL :a
=VAL :b
-MAP
-DOC
+DOC ---
=VAL :
-DOC
-STR

Expected JSON



cpp-event

 ok

java-event

 ok

java-json

 n/a
{
  "a": "b"
}
null

js-yaml-json

 n/a
{
  "a": "b"
}
null

libyaml-event

 ok

luajit-json

 error
luajit: /bin/luajit-json:6: bad argument #1 to 'encode' (expected 1 argument)
stack traceback:
	[C]: in function 'encode'
	/bin/luajit-json:6: in main chunk
	[C]: at 0x004044a0

nimyaml-event

 ok

perl5-pegex-event

 ok

perl5-pm-json

 n/a
{"a":"b"}

perl5-pm-pl

 n/a
{
  'a' => 'b'
}
undef

perl5-pp-event

 ok

perl5-pp-json

 n/a
{
   "a" : "b"
}
null

perl5-pp-pl

 n/a
{
  'a' => 'b'
}
undef

perl5-syck-json

 n/a
{"a":"b"}

perl5-syck-pl

 n/a
{
  'a' => 'b'
}
undef

perl5-tiny-json

 n/a
{"a":"b"}

perl5-tiny-pl

 n/a
{
  'a' => 'b'
}
undef

perl5-xs-json

 n/a
{"a":"b"}

perl5-xs-pl

 n/a
{
  'a' => 'b'
}
undef

pyyaml-event

 ok

pyyaml-json

 n/a
{
  "a": "b"
}
null

pyyaml-py

 n/a
{'a': 'b'}
None

ruamel-event

 ok

ruamel-json

 n/a
{
  "a": "b"
}
null

ruamel-py

 n/a
{'a': 'b'}
None

ruby-json

 n/a
{"a":"b"}
null