@@ -228,16 +228,29 @@ folded: >
228228 $trailingPrefix = @ (
229229 " ---`n value`n ...`n ${bom} # trailing prefix" | ConvertFrom-Yaml
230230 )
231+ $barePrefixDocument = @ (
232+ " # prefix`n ${bom} value" | ConvertFrom-Yaml
233+ )
234+ $bareBoundaryDocuments = @ (
235+ " ---`n one`n ...`n ${bom} two" | ConvertFrom-Yaml
236+ )
237+ $commentedBareBoundaryDocuments = @ (
238+ " ---`n one`n ...`n ${bom} # comment`n two" | ConvertFrom-Yaml
239+ )
231240
232241 $documents | Should - Be @ (' one' , ' two' )
233242 $implicitBoundaryDocuments | Should - Be @ (' one' , ' two' )
234243 $commentThenBom | Should - Be @ (' value' )
235244 $alternatingPrefixes | Should - Be @ (' value' )
236245 $trailingPrefix | Should - Be @ (' value' )
246+ $barePrefixDocument | Should - Be @ (' value' )
247+ $bareBoundaryDocuments | Should - Be @ (' one' , ' two' )
248+ $commentedBareBoundaryDocuments | Should - Be @ (' one' , ' two' )
237249 (" ${bom} ---`n value" | ConvertFrom-Yaml ) | Should - Be ' value'
238250 (" foo${bom} bar" | Test-Yaml ) | Should - BeFalse
239251 (" ---`n ${bom} value" | Test-Yaml ) | Should - BeFalse
240- (" ---`n one`n ...`n ${bom} # comment`n two" | Test-Yaml ) | Should - BeFalse
252+ (" ---`n one`n ${bom} two" | Test-Yaml ) | Should - BeFalse
253+ (" ${bom} %YAML 1.2`n value" | Test-Yaml ) | Should - BeFalse
241254 (' "foo' + $bom + ' bar"' | ConvertFrom-Yaml ) | Should - Be " foo${bom} bar"
242255 (" 'foo${bom} bar'" | ConvertFrom-Yaml ) | Should - Be " foo${bom} bar"
243256 (" `" a`n ${bom} %foo`n b`" " | ConvertFrom-Yaml ) |
0 commit comments