A metronome using the FRDM K64F board

Committer:
ram54288
Date:
Sun May 14 18:40:18 2017 +0000
Revision:
0:a7a43371b306
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ram54288 0:a7a43371b306 1 // This is just a sample test file to be used to test the generator script
ram54288 0:a7a43371b306 2 #ifndef TEST_SAMPLE_H
ram54288 0:a7a43371b306 3 #define TEST_SAMPLE_H
ram54288 0:a7a43371b306 4
ram54288 0:a7a43371b306 5 #include <setjmp.h>
ram54288 0:a7a43371b306 6 #include "unity.h"
ram54288 0:a7a43371b306 7 #include "funky.h"
ram54288 0:a7a43371b306 8 #include "Mockstanky.h"
ram54288 0:a7a43371b306 9
ram54288 0:a7a43371b306 10 void setUp(void)
ram54288 0:a7a43371b306 11 {
ram54288 0:a7a43371b306 12 CustomSetupStuff();
ram54288 0:a7a43371b306 13 }
ram54288 0:a7a43371b306 14
ram54288 0:a7a43371b306 15 void tearDown(void)
ram54288 0:a7a43371b306 16 {
ram54288 0:a7a43371b306 17 CustomTeardownStuff
ram54288 0:a7a43371b306 18 }
ram54288 0:a7a43371b306 19
ram54288 0:a7a43371b306 20 //Yup, nice comment
ram54288 0:a7a43371b306 21 void test_TheFirstThingToTest(void)
ram54288 0:a7a43371b306 22 {
ram54288 0:a7a43371b306 23 TEST_ASSERT(1);
ram54288 0:a7a43371b306 24
ram54288 0:a7a43371b306 25 TEST_ASSERT_TRUE(1);
ram54288 0:a7a43371b306 26 }
ram54288 0:a7a43371b306 27
ram54288 0:a7a43371b306 28 /*
ram54288 0:a7a43371b306 29 void test_ShouldBeIgnored(void)
ram54288 0:a7a43371b306 30 {
ram54288 0:a7a43371b306 31 DoesStuff();
ram54288 0:a7a43371b306 32 }
ram54288 0:a7a43371b306 33 */
ram54288 0:a7a43371b306 34
ram54288 0:a7a43371b306 35 //void test_ShouldAlsoNotBeTested(void)
ram54288 0:a7a43371b306 36 //{
ram54288 0:a7a43371b306 37 // Call_An_Expect();
ram54288 0:a7a43371b306 38 //
ram54288 0:a7a43371b306 39 // CallAFunction();
ram54288 0:a7a43371b306 40 // test_CallAFunctionThatLooksLikeATest();
ram54288 0:a7a43371b306 41 //}
ram54288 0:a7a43371b306 42
ram54288 0:a7a43371b306 43 void test_TheSecondThingToTest(void)
ram54288 0:a7a43371b306 44 {
ram54288 0:a7a43371b306 45 Call_An_Expect();
ram54288 0:a7a43371b306 46
ram54288 0:a7a43371b306 47 CallAFunction();
ram54288 0:a7a43371b306 48 test_CallAFunctionThatLooksLikeATest();
ram54288 0:a7a43371b306 49 }
ram54288 0:a7a43371b306 50
ram54288 0:a7a43371b306 51 #endif //TEST_SAMPLE_H