diff options
Diffstat (limited to 'tests/libntp/run-sfptostr.c')
-rw-r--r-- | tests/libntp/run-sfptostr.c | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/tests/libntp/run-sfptostr.c b/tests/libntp/run-sfptostr.c new file mode 100644 index 0000000000000..1c28fe8c57ff0 --- /dev/null +++ b/tests/libntp/run-sfptostr.c @@ -0,0 +1,66 @@ +/* AUTOGENERATED FILE. DO NOT EDIT. */ + +//=======Test Runner Used To Run Each Test Below===== +#define RUN_TEST(TestFunc, TestLineNum) \ +{ \ + Unity.CurrentTestName = #TestFunc; \ + Unity.CurrentTestLineNumber = TestLineNum; \ + Unity.NumberOfTests++; \ + if (TEST_PROTECT()) \ + { \ + setUp(); \ + TestFunc(); \ + } \ + if (TEST_PROTECT() && !TEST_IS_IGNORED) \ + { \ + tearDown(); \ + } \ + UnityConcludeTest(); \ +} + +//=======Automagically Detected Files To Include===== +#include "unity.h" +#include <setjmp.h> +#include <stdio.h> + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); +void resetTest(void); +extern void test_PositiveInteger(void); +extern void test_NegativeInteger(void); +extern void test_PositiveIntegerPositiveFraction(void); +extern void test_NegativeIntegerNegativeFraction(void); +extern void test_PositiveIntegerNegativeFraction(void); +extern void test_NegativeIntegerPositiveFraction(void); +extern void test_SingleDecimalInteger(void); +extern void test_SingleDecimalRounding(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "sfptostr.c"; + UnityBegin("sfptostr.c"); + RUN_TEST(test_PositiveInteger, 11); + RUN_TEST(test_NegativeInteger, 19); + RUN_TEST(test_PositiveIntegerPositiveFraction, 27); + RUN_TEST(test_NegativeIntegerNegativeFraction, 35); + RUN_TEST(test_PositiveIntegerNegativeFraction, 43); + RUN_TEST(test_NegativeIntegerPositiveFraction, 51); + RUN_TEST(test_SingleDecimalInteger, 59); + RUN_TEST(test_SingleDecimalRounding, 67); + + return (UnityEnd()); +} |