import Testing @testable import OrgHighlight /// The inner HTML of each line, without the `
` wrapper. private func lines(_ source: String) -> [String] { OrgHighlighter.lines(source).map { line in #expect(line.hasPrefix("
") && line.hasSuffix("\n
")) return String(line.dropFirst("
".count).dropLast("\n
".count)) } } @Test func oneDivPerSourceLine() { #expect(lines("").count == 1) #expect(lines("a\n").count == 2) #expect(lines("a\n\nb").count == 3) } @Test func escapesHTML() { #expect(lines("