@testable import CottonFaces @testable import CottonUI import CottonValues import XCTest /// RULE: an album's card shows the album's pictures — the cover first, then the rest as the album holds them, each once; the prints are the album's own rows (`album_item` by `album_id`), read through the store (faces lane, 23 Oct 2026; the photo board wears them). final class AlbumFaceTests: XCTestCase { func testTheCoverComesFirstAndEveryPrintOnce() { XCTAssertEqual(AlbumPrints.ordered(["a", "b", "cover", "c"], cover: "cover"), ["cover", "a", "b", "c"]) XCTAssertEqual(AlbumPrints.ordered(["a", "b"], cover: "cover"), ["cover", "a", "b"], "a cover the album no longer holds still leads") XCTAssertEqual(AlbumPrints.ordered(["a", "a", "", "b"], cover: nil), ["a", "b"]) } }