diff --git a/Tests/AppStateTests/AppStateTests.swift b/Tests/AppStateTests/AppStateTests.swift index abaa063..5f5e3cb 100644 --- a/Tests/AppStateTests/AppStateTests.swift +++ b/Tests/AppStateTests/AppStateTests.swift @@ -77,17 +77,17 @@ final class AppStateTests: XCTestCase { username.value = "Leif" } -// func testState() { -// var appState: Application.State = Application.state(\.username) -// -// XCTAssertEqual(appState.value, "Leif") -// -// appState.value = "0xL" -// -// XCTAssertEqual(appState.value, "0xL") -// XCTAssertEqual(Application.state(\.username).value, "0xL") -// } -// + func testState() { + var appState: Application.State = Application.state(\.username) + + XCTAssertEqual(appState.value, "Leif") + + appState.value = "0xL" + + XCTAssertEqual(appState.value, "0xL") + XCTAssertEqual(Application.state(\.username).value, "0xL") + } + // func testStateClosureCachesValueOnGet() { // let dateState: Application.State = Application.state(\.date) //