Simulated product dispenser

Dependencies:   HTS221

Fork of mbed-cloud-workshop-connect-HTS221 by Jim Carver

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers testsample_new2.c Source File

testsample_new2.c

00001 /* AUTOGENERATED FILE. DO NOT EDIT. */
00002 
00003 /*=======Test Runner Used To Run Each Test Below=====*/
00004 #define RUN_TEST(TestFunc, TestLineNum) \
00005 { \
00006   Unity.CurrentTestName = #TestFunc; \
00007   Unity.CurrentTestLineNumber = TestLineNum; \
00008   Unity.NumberOfTests++; \
00009   if (TEST_PROTECT()) \
00010   { \
00011       setUp(); \
00012       TestFunc(); \
00013   } \
00014   if (TEST_PROTECT() && !TEST_IS_IGNORED) \
00015   { \
00016     tearDown(); \
00017   } \
00018   UnityConcludeTest(); \
00019 }
00020 
00021 /*=======Automagically Detected Files To Include=====*/
00022 #include "unity.h"
00023 #include <setjmp.h>
00024 #include <stdio.h>
00025 #include "funky.h"
00026 #include "stanky.h"
00027 #include <setjmp.h>
00028 
00029 /*=======External Functions This Runner Calls=====*/
00030 extern void setUp(void);
00031 extern void tearDown(void);
00032 extern void test_TheFirstThingToTest(void);
00033 extern void test_TheSecondThingToTest(void);
00034 extern void test_TheThirdThingToTest(void);
00035 extern void test_TheFourthThingToTest(void);
00036 
00037 
00038 /*=======Suite Setup=====*/
00039 static int suite_setup(void)
00040 {
00041 a_custom_setup();
00042 }
00043 
00044 /*=======Suite Teardown=====*/
00045 static int suite_teardown(int num_failures)
00046 {
00047 a_custom_teardown();
00048 }
00049 
00050 /*=======Test Reset Option=====*/
00051 void resetTest(void);
00052 void resetTest(void)
00053 {
00054   tearDown();
00055   setUp();
00056 }
00057 
00058 
00059 /*=======MAIN=====*/
00060 int main(void)
00061 {
00062   suite_setup();
00063   UnityBegin("testdata/testsample.c");
00064   RUN_TEST(test_TheFirstThingToTest, 21);
00065   RUN_TEST(test_TheSecondThingToTest, 43);
00066   RUN_TEST(test_TheThirdThingToTest, 53);
00067   RUN_TEST(test_TheFourthThingToTest, 58);
00068 
00069   return suite_teardown(UnityEnd());
00070 }