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 "stanky.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 uint8_t* crazyString = "GET / HTTP/1.1\r\nHost: 127.0.0.1:8081\r\nConnection: keep-alive\r\nCache-Control: no-cache\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36\r\nPostman-Token: 768c7149-c3fb-f704-71a2-63918d9195b2\r\nAccept: */*\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-GB,en-US;q=0.8,en;q=0.6\r\n\r\n";
ram54288 0:a7a43371b306 46
ram54288 0:a7a43371b306 47 Call_An_Expect();
ram54288 0:a7a43371b306 48
ram54288 0:a7a43371b306 49 CallAFunction();
ram54288 0:a7a43371b306 50 test_CallAFunctionThatLooksLikeATest();
ram54288 0:a7a43371b306 51 }
ram54288 0:a7a43371b306 52
ram54288 0:a7a43371b306 53 void test_TheThirdThingToTest(void)
ram54288 0:a7a43371b306 54 {
ram54288 0:a7a43371b306 55 CallAFunction();
ram54288 0:a7a43371b306 56 }
ram54288 0:a7a43371b306 57
ram54288 0:a7a43371b306 58 void test_TheFourthThingToTest(void)
ram54288 0:a7a43371b306 59 {
ram54288 0:a7a43371b306 60 uint8_t* anotherString = "GET / HTTP/1.1\r\nHost: 127.0.0.1:8081\r\nConnection: keep-alive\r\nCache-Control: no-cache\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36\r\nPostman-Token: 768c7149-c3fb-f704-71a2-63918d9195b2\r\nAccept: */*\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-GB,en-US;q=0.8,en;q=0.6\r\n\r\n";
ram54288 0:a7a43371b306 61
ram54288 0:a7a43371b306 62 Call_An_Expect();
ram54288 0:a7a43371b306 63
ram54288 0:a7a43371b306 64 CallAFunction();
ram54288 0:a7a43371b306 65 test_CallAFunctionThatLooksLikeATest();
ram54288 0:a7a43371b306 66 }
ram54288 0:a7a43371b306 67
ram54288 0:a7a43371b306 68 #endif //TEST_SAMPLE_H