Add Gemini parser test for multiple consecutive preformatted blocks

This commit is contained in:
Shadowfacts 2020-07-12 23:45:10 -04:00
parent 800d9ca538
commit f72025ddb7
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 4 additions and 0 deletions

View File

@ -111,6 +111,10 @@ class GeminiParserTests: XCTestCase {
.preformattedText(">not a quote", alt: nil),
.preformattedText("=> /link not a link", alt: nil),
], message: "don't parse special lines inside preformatted")
assertParseLines(text: "```a\na line\n```\n```b\nb line\n```", lines: [
.preformattedText("a line", alt: "a"),
.preformattedText("b line", alt: "b"),
], message: "parse consecutive preformatted blocks")
}
func testComplexDocument() {