Skip to content

Commit

Permalink
Adding Basic Serial Test for setDebugOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
JoJos1220 committed Nov 12, 2024
1 parent 774fc86 commit 41cdf8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ namespace SerialTest

Serial.flush();
Serial.end();
Serial.setDebugOutput(true);

Verify(OverloadedMethod(ArduinoFake(Serial), begin, void(unsigned long)).Using(9600)).Once();
Verify(Method(ArduinoFake(Serial), available)).Exactly(2_Times);
Expand All @@ -73,6 +74,8 @@ namespace SerialTest

Verify(Method(ArduinoFake(Serial), flush)).Once();
Verify(Method(ArduinoFake(Serial), end)).Once();

Verify(OverloadedMethod(ArduinoFake(Serial), setDebugOutput, size_t(bool)).Using(true)).Once();
}

void run_tests()
Expand Down

0 comments on commit 41cdf8d

Please sign in to comment.