Skip to content

Commit

Permalink
New tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Jan 3, 2022
1 parent fd76e0d commit c42b149
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/6CA3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
- name: Tab indented top flow
from: '@ingydotnet'
yaml: |
————»[
————»]
tree: |-
+STR
+DOC
+SEQ []
-SEQ
-DOC
-STR
116 changes: 116 additions & 0 deletions src/DK95.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
---
- name: Tabs that look like indentation
from: '@ingydotnet'
yaml: |
foo:
———»bar
tree: |-
+STR
+DOC
+MAP
=VAL :foo
=VAL :bar
-MAP
-DOC
-STR
- yaml: |
foo: "bar
————»baz"
tree: |-
+STR
+DOC
+MAP
=VAL :foo
=VAL "bar baz
-MAP
-DOC
-STR
- yaml: |
foo: "bar
——»baz"
tree: |-
+STR
+DOC
+MAP
=VAL :foo
=VAL "bar baz
-MAP
-DOC
-STR
- yaml: |2
———»
foo: 1
tree: |-
+STR
+DOC
+MAP
=VAL :foo
=VAL :1
-MAP
-DOC
-STR
- yaml: |
foo: 1
————»
bar: 2
tree: |-
+STR
+DOC
+MAP
=VAL :foo
=VAL :1
=VAL :bar
=VAL :2
-MAP
-DOC
-STR
- yaml: |
foo: 1
———»
bar: 2
tree: |-
+STR
+DOC
+MAP
=VAL :foo
=VAL :1
=VAL :bar
=VAL :2
-MAP
-DOC
-STR
- yaml: |
foo:
a: 1
——»b: 2
tree: |-
+STR
+DOC
+MAP
=VAL :foo
+MAP
=VAL :a
=VAL :1
=VAL :x
=VAL :1
-MAP
-MAP
-DOC
-STR
- yaml: |
%YAML 1.2
————»
---
tree: |-
+STR
+DOC ---
=VAL :
-DOC
-STR
30 changes: 30 additions & 0 deletions src/L24T.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
- name: Trailing line of spaces
from: '@ingydotnet'
yaml: |
foo: |
x
␣␣␣
tree: |-
+STR
+DOC
+MAP
=VAL :foo
=VAL |x\n \n
-MAP
-DOC
-STR
- yaml: |
foo: |
x
␣␣␣∎
tree: |-
+STR
+DOC
+MAP
=VAL :foo
=VAL |x\n \n
-MAP
-DOC
-STR

0 comments on commit c42b149

Please sign in to comment.