-
Notifications
You must be signed in to change notification settings - Fork 63
Potential test cases
Tina Müller (tinita) edited this page Jul 1, 2024
·
11 revisions
libyaml had problems with it
[?]
[?]]
% echo '[?]' | docker run -i --rm yamlio/alpine-runtime-perl /yaml/bin/perl-refparser-event
Parser finished before end of input at /perl5/lib/perl5/YAML/Parser.pm line 4056, <> line 1.
% echo '[?]' | docker run -i --rm yamlio/alpine-runtime-static /yaml/bin/c-libfyaml-event
+STR
+DOC
+SEQ []
=VAL :?
-SEQ
-DOC
-STR
https://github.com/eemeli/yaml/issues/550
% echo '---
[c:]
---
[:]
---
c:
---
:' | docker run -i --rm yamlio/alpine-runtime-perl /yaml/bin/perl-refparser-event
+STR
+DOC ---
+SEQ []
+MAP {}
=VAL :c
=VAL :
-MAP
-SEQ
-DOC
+DOC ---
+SEQ []
+MAP {}
=VAL :
=VAL :
-MAP
-SEQ
-DOC
+DOC ---
+MAP
=VAL :c
=VAL :
-MAP
-DOC
+DOC ---
+MAP
=VAL :
=VAL :
-MAP
-DOC
-STR
https://github.com/eemeli/yaml/issues/547
% echo 'abc: |5 # no error
# string 6
# string 5
#comment 4
#comment 3
---
|5 # error at #comment 4
# string 6
# string 5
#comment 4
#comment 3' | docker run -i --rm yamlio/alpine-runtime-perl /yaml/bin/perl-refparser-event
+STR
+DOC
+MAP
=VAL :abc
=VAL | # string 6\n# string 5\n
-MAP
-DOC
+DOC ---
=VAL | # string 6\n # string 5\n#comment 4\n
-DOC
-STR
- https://play.yaml.io/main/parser?input=ICAgIHwKICBmb28KICBiYXIK
- https://play.yaml.io/main/parser?input=JVlBTUwgMS4xCiVZQU1MIDEuMQotLS0K
- https://play.yaml.io/main/parser?input=JVRBRyAhIHRhZzpjbGFya2V2YW5zLmNvbSwyMDAyOgolWUFNTCAxLjEKLS0tCg==
- https://play.yaml.io/main/parser?input=YQouLi4KYg==
- https://play.yaml.io/main/parser?input=LS0tICF4ICF5Cg==
- https://play.yaml.io/main/parser?input=LS0tLQ==
- https://play.yaml.io/main/parser?input=IlwgCiI=
- https://play.yaml.io/main/parser?input=KmZvbwo=
- https://play.yaml.io/main/parser?input=eyZhbGlhcyAiZm9vIjoqYWxpYXN9
- https://play.yaml.io/main/parser?input=JVlBTUwgMS4zIC4uLgotLS0K
- https://play.yaml.io/main/parser?input=JVlBTUwJMS4xCi0tLQ==
- https://play.yaml.io/main/parser?input=JVlBTUwgCi0tLQ==
- https://play.yaml.io/main/parser?input=JVlBTUwgOTkuOTkKLS0t
- https://play.yaml.io/main/parser?input=JVlBTUwgMS4yIHh5egotLS0=
- https://play.yaml.io/main/parser?input=JUpTT04gMS4zIHh5egotLS0=
- https://play.yaml.io/main/parser?input=LSAmfmAhQCMkJV4mKigpLV8rPVx8OzonIi4vPD4_Cg==
- https://play.yaml.io/main/parser?input=LSAhQCMkJiooKS1fKz0nOzouLz8K
- https://play.yaml.io/main/parser?input=LSAhfgo=
- https://play.yaml.io/main/parser?input=LSB8CiB4CiAgIA==
- https://play.yaml.io/main/parser?input=LSAiXHgwMSIK
- https://play.yaml.io/main/parser?input=LSAiXF8gICAiCg==
- https://play.yaml.io/main/parser?input=LSAiXF8iCi0gIlx4NWYiCi0gIl8iCg==
- https://play.yaml.io/main/parser?input=LSAiXAkiCg==
- https://play.yaml.io/main/parser?input=LSAiXHhhMCI=
- https://play.yaml.io/main/parser?input=LSAiXF8iCi0gIlx4NWYiCi0gIl8iCg==
- https://play.yaml.io/main/parser?input=LSAiXF8iCg==
- https://play.yaml.io/main/parser?input=LSB8CiAgeAogICAg
- https://play.yaml.io/main/parser?input=LSAiXAkiCg==
- https://play.yaml.io/main/parser?input=LSAiXF8iCi0gIlx4NWYiCi0gIl8iCg==
- https://play.yaml.io/main/parser?input=LSAiXCJcblxyXHRcL1wgXDBcYlxmXGFcdlxlXExcTlxQIgotICJceDAwXHgwN1x4MDhceDA5XHgwYVx4MGJceDBjXHgwZCIKLSAiXHgxYlx4MjBceDJmXHg1Y1x4NWZceDg1IgotICJcdTIwMjhcdTIwMjkiCg==
- https://play.yaml.io/main/parser?input=LSAiXCJcblxyXHRcL1wgXDBcYlxmXGFcdlxlXExcTlxQIgotICJceDAwXHgwN1x4MDhceDA5XHgwYVx4MGJceDBjXHgwZCIKLSAiXHgxYlx4MjBceDJmXHg1Y1x4NWZceDg1IgotICJcdTIwMjhcdTIwMjkiCg==
- https://play.yaml.io/main/parser?input=LSAiXGJcclxuXDBcZlwvIg==
- https://play.yaml.io/main/parser?input=LSAiXGJcclxuXDBcZlwvIg==
- https://play.yaml.io/main/parser?input=LSAnZicnYic=
- https://play.yaml.io/main/parser?input=LSAhIGZvbwotICdmb28nCg==
- https://play.yaml.io/main/parser?input=LSAiYVxueVx4MGF6Ig==
- https://play.yaml.io/main/parser?input=CVtdCgkK
- https://play.yaml.io/main/parser?input=CVtdCgk=
- https://play.yaml.io/main/parser?input=LQkt
- https://play.yaml.io/main/parser?input=CVtdCg==
- https://play.yaml.io/main/parser?input=Zm9vOiAnYmFyICAgJyAgICAgCiAgICAgCg==
- https://play.yaml.io/main/parser?input=ITx0YWc6eWFtbC5vcmcsMjAwMjpzdHI-IGZvbyA6CiAgITwhYmFyPiBiYXoK
- https://play.yaml.io/main/parser?input=LSB4OiB8CiAgICAKICAgIHgK
- https://play.yaml.io/main/parser?input=LSAiXHUwMDAwIg==
- https://play.yaml.io/main/parser?input=IEM6IHsgIlwwIjogTlVMLCAiXGEiOiBCRUwsICJcYiI6IEJTLCAKICAgICAgIlxmIjogRkYsICJcbiI6IExGLCAiXHIiOiBDUiwKICAgICAgIlx0IjogVEFCLCAiXHYiOiBWVEFCIH0=
- https://play.yaml.io/main/parser?input=Zm9vOiAiYmFyCiAJIAkgYmF6IAkgCSAiCg==
- https://play.yaml.io/main/parser?input=Zm9vOiAiYmFyCgliYXoiCg==
- https://play.yaml.io/main/parser?input=Zm9vOgogIGE6IDEKICAJYjogMg==
ethiraric on matrix wrote their parser failed on this:
[a: [b: c]]