···11+import Testing
22+33+@testable import voicememosutil
44+55+struct TranscriptTests {
66+ @Test("text(): interleaved format")
77+ func textInterleaved() throws {
88+ let data = try loadResource("transcript_interleaved.json")
99+ let text = try Transcript(data: data).text()
1010+ #expect(text == "This is the transcript text interleaved with attributes.")
1111+ }
1212+1313+ @Test("text(): separated format")
1414+ func textSeparated() throws {
1515+ let data = try loadResource("transcript_separated.json")
1616+ let text = try Transcript(data: data).text()
1717+ #expect(text == "In this format text is interleaved with indices of attributes.")
1818+ }
1919+}