1284990Scy/* AUTOGENERATED FILE. DO NOT EDIT. */ 2284990Scy 3284990Scy//=======Test Runner Used To Run Each Test Below===== 4284990Scy#define RUN_TEST(TestFunc, TestLineNum) \ 5284990Scy{ \ 6284990Scy Unity.CurrentTestName = #TestFunc; \ 7284990Scy Unity.CurrentTestLineNumber = TestLineNum; \ 8284990Scy Unity.NumberOfTests++; \ 9284990Scy if (TEST_PROTECT()) \ 10284990Scy { \ 11284990Scy setUp(); \ 12284990Scy TestFunc(); \ 13284990Scy } \ 14284990Scy if (TEST_PROTECT() && !TEST_IS_IGNORED) \ 15284990Scy { \ 16284990Scy tearDown(); \ 17284990Scy } \ 18284990Scy UnityConcludeTest(); \ 19284990Scy} 20284990Scy 21284990Scy//=======Automagically Detected Files To Include===== 22284990Scy#include "unity.h" 23284990Scy#include <setjmp.h> 24284990Scy#include <stdio.h> 25289999Sglebius#include "config.h" 26289999Sglebius#include "ntp_types.h" 27289999Sglebius#include "ntp_fp.h" 28289999Sglebius#include "timevalops.h" 29289999Sglebius#include <math.h> 30284990Scy 31284990Scy//=======External Functions This Runner Calls===== 32284990Scyextern void setUp(void); 33284990Scyextern void tearDown(void); 34289999Sglebiusextern void test_Helpers1(void); 35289999Sglebiusextern void test_Normalise(void); 36289999Sglebiusextern void test_SignNoFrac(void); 37289999Sglebiusextern void test_SignWithFrac(void); 38289999Sglebiusextern void test_CmpFracEQ(void); 39289999Sglebiusextern void test_CmpFracGT(void); 40289999Sglebiusextern void test_CmpFracLT(void); 41289999Sglebiusextern void test_AddFullNorm(void); 42289999Sglebiusextern void test_AddFullOflow1(void); 43289999Sglebiusextern void test_AddUsecNorm(void); 44289999Sglebiusextern void test_AddUsecOflow1(void); 45289999Sglebiusextern void test_SubFullNorm(void); 46289999Sglebiusextern void test_SubFullOflow(void); 47289999Sglebiusextern void test_SubUsecNorm(void); 48289999Sglebiusextern void test_SubUsecOflow(void); 49289999Sglebiusextern void test_Neg(void); 50289999Sglebiusextern void test_AbsNoFrac(void); 51289999Sglebiusextern void test_AbsWithFrac(void); 52289999Sglebiusextern void test_Helpers2(void); 53289999Sglebiusextern void test_ToLFPbittest(void); 54289999Sglebiusextern void test_ToLFPrelPos(void); 55289999Sglebiusextern void test_ToLFPrelNeg(void); 56289999Sglebiusextern void test_ToLFPabs(void); 57289999Sglebiusextern void test_FromLFPbittest(void); 58289999Sglebiusextern void test_FromLFPrelPos(void); 59289999Sglebiusextern void test_FromLFPrelNeg(void); 60289999Sglebiusextern void test_LFProundtrip(void); 61289999Sglebiusextern void test_ToString(void); 62284990Scy 63284990Scy 64284990Scy//=======Test Reset Option===== 65289999Sglebiusvoid resetTest(void); 66289999Sglebiusvoid resetTest(void) 67284990Scy{ 68284990Scy tearDown(); 69284990Scy setUp(); 70284990Scy} 71284990Scy 72289999Sglebiuschar const *progname; 73284990Scy 74284990Scy 75284990Scy//=======MAIN===== 76284990Scyint main(int argc, char *argv[]) 77284990Scy{ 78284990Scy progname = argv[0]; 79284990Scy UnityBegin("timevalops.c"); 80298770Sdelphij RUN_TEST(test_Helpers1, 37); 81298770Sdelphij RUN_TEST(test_Normalise, 38); 82298770Sdelphij RUN_TEST(test_SignNoFrac, 39); 83298770Sdelphij RUN_TEST(test_SignWithFrac, 40); 84298770Sdelphij RUN_TEST(test_CmpFracEQ, 41); 85298770Sdelphij RUN_TEST(test_CmpFracGT, 42); 86298770Sdelphij RUN_TEST(test_CmpFracLT, 43); 87298770Sdelphij RUN_TEST(test_AddFullNorm, 44); 88298770Sdelphij RUN_TEST(test_AddFullOflow1, 45); 89298770Sdelphij RUN_TEST(test_AddUsecNorm, 46); 90298770Sdelphij RUN_TEST(test_AddUsecOflow1, 47); 91298770Sdelphij RUN_TEST(test_SubFullNorm, 48); 92298770Sdelphij RUN_TEST(test_SubFullOflow, 49); 93298770Sdelphij RUN_TEST(test_SubUsecNorm, 50); 94298770Sdelphij RUN_TEST(test_SubUsecOflow, 51); 95298770Sdelphij RUN_TEST(test_Neg, 52); 96298770Sdelphij RUN_TEST(test_AbsNoFrac, 53); 97298770Sdelphij RUN_TEST(test_AbsWithFrac, 54); 98298770Sdelphij RUN_TEST(test_Helpers2, 55); 99298770Sdelphij RUN_TEST(test_ToLFPbittest, 56); 100298770Sdelphij RUN_TEST(test_ToLFPrelPos, 57); 101298770Sdelphij RUN_TEST(test_ToLFPrelNeg, 58); 102298770Sdelphij RUN_TEST(test_ToLFPabs, 59); 103298770Sdelphij RUN_TEST(test_FromLFPbittest, 60); 104298770Sdelphij RUN_TEST(test_FromLFPrelPos, 61); 105298770Sdelphij RUN_TEST(test_FromLFPrelNeg, 62); 106298770Sdelphij RUN_TEST(test_LFProundtrip, 63); 107298770Sdelphij RUN_TEST(test_ToString, 64); 108284990Scy 109284990Scy return (UnityEnd()); 110284990Scy} 111