diff options
Diffstat (limited to 'contrib/ntp/tests/libntp/sfptostr.c')
-rw-r--r-- | contrib/ntp/tests/libntp/sfptostr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/ntp/tests/libntp/sfptostr.c b/contrib/ntp/tests/libntp/sfptostr.c index fd56114..b115ae1 100644 --- a/contrib/ntp/tests/libntp/sfptostr.c +++ b/contrib/ntp/tests/libntp/sfptostr.c @@ -8,6 +8,16 @@ #define SFP_MAX_PRECISION 6 +void test_PositiveInteger(void); +void test_NegativeInteger(void); +void test_PositiveIntegerPositiveFraction(void); +void test_NegativeIntegerNegativeFraction(void); +void test_PositiveIntegerNegativeFraction(void); +void test_NegativeIntegerPositiveFraction(void); +void test_SingleDecimalInteger(void); +void test_SingleDecimalRounding(void); + + void test_PositiveInteger(void) { s_fp test = 300 << 16; // exact 300.000000 |