Skip to content
Snippets Groups Projects
Commit f08da7f4 authored by Karthigai Amutha Ezhilarasu's avatar Karthigai Amutha Ezhilarasu
Browse files

fixed a silly mistake in the test code

parent 2979d599
No related branches found
No related tags found
2 merge requests!16Bridge board bluetooth,!4lab7 sensor board
......@@ -19,15 +19,13 @@ void setUp() {
}
void tearDown() {}
// test_sonar.c:24:test_sonar__send_trigger_for_10us:FAIL: CMock has run out of memory. Please allocate more.
// void test_sonar__send_trigger_for_10us(void) {
// gpio_s test_trigger = {};
// gpio__set_ExpectAny(test_trigger);
// delay__us_Expect(10);
// gpio__reset_Expect(test_trigger);
// test_sonar__send_trigger_for_10us();
// }
void test_sonar__send_trigger_for_10us(void) {
gpio_s test_trigger = {};
gpio__set_Expect(test_trigger);
delay__us_Expect(10);
gpio__reset_Expect(test_trigger);
sonar__send_trigger_for_10us();
}
void test_sonar__get_echo_and_trigger_pins(void) {
sonar__get_echo_and_trigger_pins(FRONT_SONAR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment