Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hansingt committed Jan 5, 2024
1 parent c7318f8 commit 0069720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ mod tests {

fn get_switch(state: bool) -> PinMock {
let pin_expectations = match state {
true => [PinTransaction::get(PinState::High)],
false => [PinTransaction::get(PinState::Low)],
true => [PinTransaction::get(PinState::Low)],
false => [PinTransaction::get(PinState::High)],
};
PinMock::new(&pin_expectations)
}
Expand Down

0 comments on commit 0069720

Please sign in to comment.