Cotton code
26 lines · 1.1 KB · SwiftRaw
import CottonKitimport Foundationimport XCTest@testable import CottonUI// The owner retired the Runway-era presentation. These guards name the// carried engine data and routes, the deliberate drops, and the remaining backlog.final class MoneyNoLossTests: XCTestCase {    func testCarriedWaysInGUseTheFourGenericMoneyRoutes() {        // No route total here: every new screen broke this money test (4087,        // /members/[id]); RouteTableTests hold the enum to Rust's table.        for (path, route) in [            ("/money", Route.money),            ("/money/accounts/example", .moneyAccount(id: "example")),            ("/money/transactions/example", .moneyTransaction(id: "example")),            ("/money/statements/example", .moneyStatement(id: "example")),        ] {            XCTAssertEqual(Route.parse(path), route)            XCTAssertEqual(route.path, path)        }        XCTAssertEqual(Route.record(.transaction, "example"), .moneyTransaction(id: "example"))        XCTAssertEqual(Route.moneyAccount(id: "example").tier, .page)        XCTAssertEqual(Route.moneyAccount(id: "example").listRoot, .money)    }}