From 00697204db782de2cae65ecd25b1598216d3c7b6 Mon Sep 17 00:00:00 2001 From: Torben Hansing Date: Fri, 5 Jan 2024 13:48:32 +0100 Subject: [PATCH] Fixed tests --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3a90296..5918c56 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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) }