my free time I — " enjoy bouldering — # host a pub quiz — $ travel a lot — % Programming languages & developer tools — ❤ Swift is my favorite — ✅ Loooove green checkmarks in tests — ( Twitter: @xavierLowmiller
let todo = Todo() var newState = appReducer(action: TodoAction.add(todo), state: state) XCTAssertEqual(newState.todos.count, 1) // When let action = TodoAction.remove(todo) newState = appReducer(action: action, state: newState) // Then XCTAssert(newState.todos.isEmpty) }