-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
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:
- https://yaml.org/spec/1.2.2/#22-structures
- https://github.com/adrienverge/yamllint/blob/master/tests/yaml-1.2-spec-examples/example-2.17
The failure can be reproduced by adding the following yaml file and test case:
samples/spaces.yaml
---
title: A Title
say: yessamples/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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels