1

Dependencies:   Blinky

Fork of Blinky_Tests by Sarah Marsh

Files at this revision

API Documentation at this revision

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
--- 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(){