菜谱项目

YtsErrorTests.yml 625B

1234567891011121314151617181920212223242526
  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. test: Not indenting enough
  14. brief: |
  15. There was a bug in PyYaml where it was off by one
  16. in the indentation check. It was allowing the YAML
  17. below.
  18. # This is actually valid YAML now. Someone should tell showell.
  19. yaml: |
  20. foo:
  21. firstline: 1
  22. secondline: 2
  23. php: |
  24. array('foo' => null, 'firstline' => 1, 'secondline' => 2)