Skip to content

Commit

Permalink
add a golden test for the YAML list warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffFaer committed Sep 27, 2024
1 parent 8de0e2b commit 6a7a8d7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions goldens/simple.err
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
WRN skip_lines has invalid value: -1 line=105
WRN unrecognized option "foo" line=105
WRN while parsing option "ignore_prefixes": content appears to be an unterminated YAML list: "[abc, foo" line=112
7 changes: 7 additions & 0 deletions goldens/simple.in
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,10 @@ Invalid option
1
3
keep-sorted-test end

Invalid YAML
keep-sorted-test start allow_yaml_lists=yes ignore_prefixes=[abc, foo
2
1
3
keep-sorted-test end
7 changes: 7 additions & 0 deletions goldens/simple.out
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,10 @@ Invalid option
2
3
keep-sorted-test end

Invalid YAML
keep-sorted-test start allow_yaml_lists=yes ignore_prefixes=[abc, foo
1
2
3
keep-sorted-test end

0 comments on commit 6a7a8d7

Please sign in to comment.