YtsErrorTests.yml (625B)
1 --- 2 test: Missing value for hash item 3 todo: true 4 brief: | 5 Third item in this hash doesn't have a value 6 yaml: | 7 okay: value 8 also okay: ~ 9 causes error because no value specified 10 last key: value okay here too 11 python-error: causes error because no value specified 12 13 --- 14 test: Not indenting enough 15 brief: | 16 There was a bug in PyYaml where it was off by one 17 in the indentation check. It was allowing the YAML 18 below. 19 # This is actually valid YAML now. Someone should tell showell. 20 yaml: | 21 foo: 22 firstline: 1 23 secondline: 2 24 php: | 25 array('foo' => null, 'firstline' => 1, 'secondline' => 2)