import Testing @testable import NorgKit struct ArrayInlineSpanTests { @Test func plainTextConcatenatesSpanText() { let spans = [ InlineSpan(text: "Hello, ", styles: .bold), InlineSpan(text: "world", styles: .italic), InlineSpan(text: "!"), ] #expect(spans.plainText == "Hello, world!") } @Test func plainTextOfEmptyArrayIsEmpty() { #expect([InlineSpan]().plainText.isEmpty) } }