aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/test/forbidden.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext_depends/D-YAML/test/forbidden.yaml')
-rw-r--r--src/ext_depends/D-YAML/test/forbidden.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/ext_depends/D-YAML/test/forbidden.yaml b/src/ext_depends/D-YAML/test/forbidden.yaml
new file mode 100644
index 0000000..175b3e2
--- /dev/null
+++ b/src/ext_depends/D-YAML/test/forbidden.yaml
@@ -0,0 +1,28 @@
+%YAML 1.1
+---
+- name: forbidden-entry
+ fail: true
+ mark: { line: 1, column: 7 }
+ error: "Sequence keys are not allowed here"
+ yaml: |
+ test: - foo
+ - bar
+- name: forbidden-key
+ fail: true
+ mark: { line: 1, column: 7 }
+ error: "Mapping keys are not allowed here"
+ yaml: |
+ test: ? foo
+ : bar
+- name: forbidden-value
+ fail: true
+ mark: { line: 1, column: 10 }
+ error: "Mapping values are not allowed here"
+ yaml: |
+ test: key: value
+- name: forbidden-starting-character
+ fail: true
+ mark: { line: 1, column: 1 }
+ error: "While scanning for the next token, found character '@', index 64 that cannot start any token"
+ yaml: |
+ @