Valid yaml with a blank line in the middle results in the content after blank line being ignored.
One can find a valid example yaml from various sources. For example:
The failure can be reproduced by adding the following yaml file and test case:
samples/spaces.yaml
---
title: A Title
say: yes
samples/spaces.lua
return {
["say"] = true,
["title"] = "A Title",
}
The above fails as:
lua-yaml# make
busted && luacheck yaml.lua
●●●●●●●●●●●●●●●●●◼●●●
20 successes / 1 failure / 0 errors / 0 pending : 0.043067 seconds
Failure → spec/test_spec.lua @ 29
Parsing in spaces
spec/test_spec.lua:32: Expected objects to be the same.
Passed in:
(table: 0x600001345c40) {
[title] = 'A Title' }
Expected:
(table: 0x6000013d4340) {
*[say] = true
[title] = 'A Title' }
make: *** [test] Error 1
Valid yaml with a blank line in the middle results in the content after blank line being ignored.
One can find a valid example yaml from various sources. For example:
The failure can be reproduced by adding the following yaml file and test case:
samples/spaces.yaml
samples/spaces.lua
The above fails as: