lazaro camargo
/
Blinky_Tests_GreenTea1
1
Fork of Blinky_Tests by
Revision 1:b0034f8b2c42, committed 2016-09-27
- Comitter:
- sarahmarshy
- Date:
- Tue Sep 27 22:24:35 2016 +0000
- Parent:
- 0:0d5d376157a0
- Commit message:
- Removed true assertion on success.
Changed in this revision
TESTS/Blinky/5_Blinks/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 0d5d376157a0 -r b0034f8b2c42 TESTS/Blinky/5_Blinks/main.cpp --- a/TESTS/Blinky/5_Blinks/main.cpp Mon Sep 19 22:12:16 2016 +0000 +++ b/TESTS/Blinky/5_Blinks/main.cpp Tue Sep 27 22:24:35 2016 +0000 @@ -12,16 +12,6 @@ //To be set by interrupt handler int measured_blinks = 0; -// A test that returns successfully is considered successful -void test_success() { - TEST_ASSERT(true); -} - -// Tests that assert are considered failing -void test_failure() { - TEST_ASSERT(false); -} - //To be called by interrupt, increases the number of measured rising edges void count_blinks(){ TEST_ASSERT_MESSAGE(++measured_blinks<=expected_blinks, "******Too many blinks!******"); @@ -47,7 +37,6 @@ //Wait the appropriate amount of time for expected_blinks Thread::wait(wait_time); blinker.stop(); - test_success(); } void blink_500(){