Skip to content

Commit

Permalink
Add test that is expected to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Sep 19, 2024
1 parent 40160d3 commit 1101e79
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Tests/AppStateTests/AppStateTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
//
Expand Down

0 comments on commit 1101e79

Please sign in to comment.