YAML Framework Matrix

Test #565N - Construct Binary

YAML

canonical: !!binary "\
 R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\
 OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\
 +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\
 AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs="
generic: !!binary |
 R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5
 OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+
 +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC
 AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
description:
 The binary value above is a tiny arrow encoded as a gif image.

Expected Events

+STR
+DOC
+MAP
=VAL :canonical
=VAL <tag:yaml.org,2002:binary> "R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLCAgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
=VAL :generic
=VAL <tag:yaml.org,2002:binary> |R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\nOTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\n+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\nAgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=\n
=VAL :description
=VAL :The binary value above is a tiny arrow encoded as a gif image.
-MAP
-DOC
-STR

Expected JSON



cpp-event

 ok

java-event

 ok

java-json

 n/a
{
  "canonical": [
    71,
    73,
    70,
    56,
    57,
    97,
    12,
    0,
    12,
    0,
    -124,
    0,
    0,
    -1,
    -1,
    -9,
    -11,
    -11,
    -18,
    -23,
    -23,
    -27,
    102,
    102,
    102,
    0,
    0,
    0,
    -25,
    -25,
    -25,
    94,
    94,
    94,
    -13,
    -13,
    -19,
    -114,
    -114,
    -114,
    -32,
    -32,
    -32,
    -97,
    -97,
    -97,
    -109,
    -109,
    -109,
    -89,
    -89,
    -89,
    -98,
    -98,
    -98,
    105,
    105,
    105,
    99,
    99,
    99,
    -93,
    -93,
    -93,
    -124,
    -124,
    -124,
    -1,
    -2,
    -7,
    -1,
    -2,
    -7,
    -1,
    -2,
    -7,
    -1,
    -2,
    -7,
    -1,
    -2,
    -7,
    -1,
    -2,
    -7,
    -1,
    -2,
    -7,
    -1,
    -2,
    -7,
    -1,
    -2,
    -7,
    -1,
    -2,
    -7,
    -1,
    -2,
    -7,
    -1,
    -2,
    -7,
    -1,
    -2,
    -7,
    -1,
    -2,
    -7,
    33,
    -2,
    14,
    77,
    97,
    100,
    101,
    32,
    119,
    105,
    116,
    104,
    32,
    71,
    73,
    77,
    80,
    0,
    44,
    0,
    0,
    0,
    0,
    12,
    0,
    12,
    0,
    0,
    5,
    44,
    32,
    32,
    -114,
    -127,
    48,
    -98,
    -29,
    64,
    20,
    -24,
    105,
    16,
    -60,
    -47,
    -118,
    8,
    28,
    -49,
    -128,
    77,
    36,
    122,
    -17,
    -1,
    48,
    -123,
    112,
    -72,
    -80,
    49,
    102,
    13,
    27,
    -50,
    1,
    -61,
    1,
    30,
    16,
    39,
    32,
    -126,
    10,
    1,
    0,
    59
  ],
  "generic": [
    71,
    73,
    70,
    56,
    57,
    97,
    12,
    0,
    12,
    0,
    -124,
    0,
----- 8< -----

js-yaml-json

 error
TypeError: this is not a typed array.
    at Function.from (native)
    at Type.constructYamlBinary [as construct] (/node_modules/js-yaml/lib/js-yaml/type/binary.js:80:41)
    at composeNode (/node_modules/js-yaml/lib/js-yaml/loader.js:1395:29)
    at readBlockMapping (/node_modules/js-yaml/lib/js-yaml/loader.js:1062:11)
    at composeNode (/node_modules/js-yaml/lib/js-yaml/loader.js:1332:12)
    at readDocument (/node_modules/js-yaml/lib/js-yaml/loader.js:1492:3)
    at loadDocuments (/node_modules/js-yaml/lib/js-yaml/loader.js:1548:5)
    at Object.loadAll (/node_modules/js-yaml/lib/js-yaml/loader.js:1556:19)
    at Object.<anonymous> (/bin/js-yaml-json:6:6)
    at Object.<anonymous> (/bin/js-yaml-json:3:1)
    at Module._compile (module.js:410:26)
    at Object.exports.run (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:173:23)
    at compileScript (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:224:29)
    at compilePath (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:174:14)
    at Object.exports.run (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:98:20)
    at Object.<anonymous> (/usr/local/lib/node_modules/coffee-script/bin/coffee:7:41)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

libyaml-event

 ok

luajit-json

 n/a
{"canonical":"GIF89a\f\u0000\f\u0000\u0000\u0000fff\u0000\u0000\u0000^^^펎iiiccc!\u000eMade with GIMP\u0000,\u0000\u0000\u0000\u0000\f\u0000\f\u0000\u0000\u0005,  0@\u0014i\u0010ъ\b\u001cπM$z0p1f\r\u001b\u0001\u0001\u001e\u0010' \n\u0001\u0000;","generic":"GIF89a\f\u0000\f\u0000\u0000\u0000fff\u0000\u0000\u0000^^^펎iiiccc!\u000eMade with GIMP\u0000,\u0000\u0000\u0000\u0000\f\u0000\f\u0000\u0000\u0005,  0@\u0014i\u0010ъ\b\u001cπM$z0p1f\r\u001b\u0001\u0001\u001e\u0010' \n\u0001\u0000;","description":"The binary value above is a tiny arrow encoded as a gif image."}

nimyaml-event

 ok

perl5-pegex-event

 diff
Got Events:
+STR
+DOC
+MAP
=VAL :canonical
=VAL <tag:yaml.org,2002:binary> "\ R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\ OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\ +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\ AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
=VAL :generic
=VAL <tag:yaml.org,2002:binary> |R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\nOTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\n+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\nAgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=\n
=VAL :description
=VAL : The binary value above is a tiny arrow encoded as a gif image.
-MAP
-DOC
-STR

perl5-pm-json

 error
YAML Error: Inconsistent indentation level
   Code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION
   Line: 2
   Document: 1
 at /lib/perl5/YAML/Loader.pm line 736.

perl5-pm-pl

 error
YAML Error: Inconsistent indentation level
   Code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION
   Line: 2
   Document: 1
 at /lib/perl5/YAML/Loader.pm line 736.

perl5-pp-event

 ok

perl5-pp-json

 n/a
{
   "canonical" : "R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLCAgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=",
   "description" : "The binary value above is a tiny arrow encoded as a gif image.",
   "generic" : "R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\nOTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\n+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\nAgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=\n"
}

perl5-pp-pl

 n/a
{
  'canonical' => 'R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLCAgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=',
  'description' => 'The binary value above is a tiny arrow encoded as a gif image.',
  'generic' => 'R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5
OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+
+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC
AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
'
}

perl5-syck-json

 n/a
{"canonical":"GIF89a\f\u0000\f\u0000„\u0000\u0000ÿÿ÷õõîééåfff\u0000\u0000\u0000ççç^^^óó펎ŽàààŸŸŸ“““§§§žžžiiiccc£££„„„ÿþùÿþùÿþùÿþùÿþùÿþùÿþùÿþùÿþùÿþùÿþùÿþùÿþùÿþù!þ\u000EMade with GIMP\u0000,\u0000\u0000\u0000\u0000\f\u0000\f\u0000\u0000\u0005,  Ž0žã@\u0014èi\u0010Äъ\b\u001CπM$zïÿ0…p¸°1f\r\u001BÎ\u0001Ã\u0001\u001E\u0010' ‚\n\u0001\u0000;","description":"The binary value above is a tiny arrow encoded as a gif image.","generic":"GIF89a\f\u0000\f\u0000„\u0000\u0000ÿÿ÷õõîééåfff\u0000\u0000\u0000ççç^^^óó펎ŽàààŸŸ"}

perl5-syck-pl

 n/a
{
  'canonical' => 'GIF89afff^^^펎iiiccc!Made with GIMP,,  0@iъπM$z0p1f
\' 
;',
  'description' => 'The binary value above is a tiny arrow encoded as a gif image.',
  'generic' => 'GIF89afff^^^펎'
}

perl5-tiny-json

 error
YAML::Tiny does not support a feature in line '!!binary "\' at /bin/perl5-tiny-json line 14.

perl5-tiny-pl

 error
YAML::Tiny does not support a feature in line '!!binary "\' at /bin/perl5-tiny-pl line 13.

perl5-xs-json

 error
YAML::XS Error: bad tag found for scalar: 'tag:yaml.org,2002:binary' at /bin/perl5-xs-json line 14, <> line 1.

perl5-xs-pl

 error
YAML::XS Error: bad tag found for scalar: 'tag:yaml.org,2002:binary' at /bin/perl5-xs-pl line 13, <> line 1.

pyyaml-event

 ok

ruamel-event

 ok

ruby-json

 error
/usr/lib/ruby/vendor_ruby/json/common.rb:223:in `encode': "\x84" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
	from /usr/lib/ruby/vendor_ruby/json/common.rb:223:in `generate'
	from /usr/lib/ruby/vendor_ruby/json/common.rb:223:in `generate'
	from /usr/lib/ruby/vendor_ruby/json/common.rb:394:in `dump'
	from /bin/ruby-json:7:in `block in <main>'
	from /bin/ruby-json:6:in `each'
	from /bin/ruby-json:6:in `<main>'