aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fabpot-yaml/test/fixtures/YtsErrorTests.yml
blob: c0d6d6d3bb271908d7df527974668a8e23d8bc2b (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
--- 
test: Missing value for hash item 
todo: true
brief: | 
    Third item in this hash doesn't have a value 
yaml: | 
    okay: value 
    also okay: ~ 
    causes error because no value specified 
    last key: value okay here too 
python-error: causes error because no value specified 
 
--- 
test: Not indenting enough 
brief: | 
    There was a bug in PyYaml where it was off by one 
    in the indentation check.  It was allowing the YAML  
    below. 
# This is actually valid YAML now. Someone should tell showell. 
yaml: | 
    foo: 
    firstline: 1 
    secondline: 2 
php: |
  array('foo' => null, 'firstline' => 1, 'secondline' => 2)