@testable import CottonUI import XCTest /// RULE: an email card's snippet never shows a mail's stand-ins for what it could not carry (`[image: …]`), nor the blank lines they leave (real-data walk, 23 Oct 2026). final class EmailSnippetTests: XCTestCase { func testImageStandInsAndTheirBlankLinesGo() { let snippet = "[image: Google]\n\n\n\nYour account was used to sign in.\n[image: Invented Bank]\nThanks" XCTAssertEqual(EmailSnippet.plain(snippet), "Your account was used to sign in.\n\nThanks") } func testPlainWordsStand() { XCTAssertEqual(EmailSnippet.plain("Order QS-20817 [paid] on 11 Oct"), "Order QS-20817 [paid] on 11 Oct") } }