--- &test-U3C3
Title: Spec Example 6.16. âTAGâ directive
Tags: [ header, spec, tag ]
%TAG !yaml! tag:yaml.org,2002:
---
!yaml!str "foo"
+STR
+DOC ---
=VAL <tag:yaml.org,2002:str> "foo
-DOC
-STR
diff
Minimal Events:
+STR
+DOC
=VAL <tag:yaml.org,2002:str> "foo
-DOC
-STR
Transformed Events:
+STR
+DOC
=VAL <!yaml!str> "foo
-DOC
-STR
Got Events:
+STR
+DOC
=VAL <!yaml!str> "foo
-DOC
-STR
json_diff
{
"%TAG !yaml! tag:yaml.org,2002": null
}
"foo"
error
Use of uninitialized value in sprintf at /perl5/lib/perl5/YAML/Error.pm line 18, <> line 1.
YAML Error: Can't parse inline implicit value ''
Code: YAML_PARSE_ERR_BAD_INLINE_IMPLICIT
Line: 1
Document: 1
at /perl5/lib/perl5/YAML/Loader.pm line 607.
error
Use of uninitialized value in sprintf at /perl5/lib/perl5/YAML/Error.pm line 18, <> line 1.
YAML Error: Can't parse inline implicit value ''
Code: YAML_PARSE_ERR_BAD_INLINE_IMPLICIT
Line: 1
Document: 1
at /perl5/lib/perl5/YAML/Loader.pm line 607.
na
Line Col Char Byte Token|Content
1 0 0 0 +DOC |
1 0 0 0 +DIR |
1 0 0 0 =SYNX|%
1 1 1 1 =META|TAG
1 4 4 4 =WSPC|.
1 5 5 5 +HAND|
1 5 5 5 =SYNX|!
1 6 6 6 =META|yaml
1 10 10 10 =SYNX|!
1 11 11 11 -HAND|
1 11 11 11 =WSPC|.
1 12 12 12 +TAG |
1 12 12 12 =META|tag:yaml.org,2002:
1 30 30 30 -TAG |
1 30 30 30 -DIR |
1 30 30 30 =EOL |\x0a
2 0 31 31 =HEAD|---
2 3 34 34 =EOL |\x0a
3 0 35 35 +NODE|
3 0 35 35 +PROP|
3 0 35 35 +TAG |
3 0 35 35 +HAND|
3 0 35 35 =SYNX|!
3 1 36 36 =META|yaml
3 5 40 40 =SYNX|!
3 6 41 41 -HAND|
3 6 41 41 =META|str
3 9 44 44 -TAG |
3 9 44 44 -PROP|
3 9 44 44 =WSPC|.
3 10 45 45 +VAL |
3 10 45 45 =SYNX|"
3 11 46 46 =TEXT|foo
3 14 49 49 =SYNX|"
3 15 50 50 -VAL |
3 15 50 50 -NODE|
3 15 50 50 =EOL |\x0a
4 0 51 51 -DOC |
na
{
'%TAG !yaml! tag:yaml.org,2002' => undef
}
'foo'
ni
YAML::Tiny failed to classify line '!yaml!str "foo"' at /yaml/bin/perl-tiny-json line 12.
ni
YAML::Tiny failed to classify line '!yaml!str "foo"' at /yaml/bin/perl-tiny-perl line 15.