aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/test/forbidden.yaml
blob: 175b3e2399799ea4980e4c6d37009225a25ccf29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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: |
    @