--- parser3/tests/256.html 2010/10/12 21:37:37 1.2 +++ parser3/tests/256.html 2012/05/27 22:36:07 1.5 @@ -1,4 +1,4 @@ -@main[] +@main[] $a[^hash::create[]] $b[$.a[$a]] $a.b[$b] @@ -31,6 +31,10 @@ $h[ $.1[$.date[gmt-string]] $.2[$.date[sql-string]] $.3[$.date[$handler]] + $.4[ + $.date[unsupported] + $.exception(true) + ] ] ] @@ -48,6 +52,12 @@ $h[ $.1[$.table[object] $.indent(true)] $.2[$.table[array]] $.3[$.table[array] $.indent(true)] + $.4[$.table[compact]] + $.5[$.table[compact] $.indent(true)] + $.6[ + $.table[unsupported] + $.exception(true) + ] ] ] @@ -56,6 +66,14 @@ $h[ $._options[ $.0[$.my[$handler]] + $.1[ + $.my[$unknown] + $.exception(true) + ] + $.2[ + $.my[$main] + $.exception(true) + ] ] ] @@ -68,6 +86,11 @@ $h[ $.0[$.file[text]] $.1[$.file[base64] $.indent(true)] $.2[$.file[$handler]] + $.3[$.file[stat]] + $.4[ + $.file[unsupported] + $.exception(true) + ] ] ] @@ -88,9 +111,21 @@ $h[ ] ] + $.xdoc[ + $.value[^xdoc::create{}] + $._options[ + $.0[] + $.1[$.xdoc[ + $.omit-xml-declaration[yes] + $.indent[yes] + ]] + ] + ] ] ^h.table.table_named_3.append{v7 v8 v9 v0} +^h.table.table_named_3.append{vA"} +^h.table.table_named_3.append{vB\} $s[^h.foreach[k;v]{

$k

@@ -115,16 +150,16 @@ $bShouldBeException($options.exception) $result[^json:string[$value;$options]^if($bShouldBeException){. FAILED. EXCEPTION SHOULD BE HERE}] }{ $exception.handled(true) - $result[Exception^if($bShouldBeException){. That's OK} ($exception.comment)] + $result["exception":"$exception.source, $exception.comment^if($bShouldBeException){. That's OK}"] } -@handler[v;p][kk;vv] +@handler[k;v;p][kk;vv] $result[^switch[$v.CLASS_NAME]{ ^case[date]{"new Date(^v.unix-timestamp[])"} ^case[file]{{"file":{"name":"$v.name", "text":"$v.text", "params":"-params-"}}} ^case[image]{"image []"} - ^case[DEFAULT]{"$v.CLASS_NAME"} + ^case[DEFAULT]{"$v.CLASS_NAME at key $k, with ^p._count[] option"} }]