From 6bcacabc3b91b656db65760684d9d383f8af5dda Mon Sep 17 00:00:00 2001 From: hellerve Date: Mon, 31 Jul 2017 13:21:06 -0400 Subject: [PATCH] tests: added more complex test case to silly_conversion --- tests/test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test.c b/tests/test.c index 9f8f9b3..4e3ac99 100644 --- a/tests/test.c +++ b/tests/test.c @@ -110,6 +110,8 @@ TEST silly_conversion() { ASSERT_EQ_FMT(0.0, silly_to_double(x), "%f"); x = silly_from_double((double) -1.1); ASSERT(-1.1 - silly_to_double(x) <= 0.01); + x = silly_from_double((double) -413.25); + ASSERT(-413.25 - silly_to_double(x) <= 0.01); PASS(); }