summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-03-06 19:33:50 -0500
committerJakob Kaivo <jkk@ung.org>2019-03-06 19:33:50 -0500
commitb40d6490c4155a466d97561950fa9c3aa142170d (patch)
tree6a4463bcbcfd4c91e2782c581d9b509e190ce195
parent0540366e3047d5f5326b25be8a21b5a3774adaf8 (diff)
first strtod() test
-rw-r--r--stdlib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stdlib.c b/stdlib.c
index 525a416..c66aa92 100644
--- a/stdlib.c
+++ b/stdlib.c
@@ -30,5 +30,7 @@ void test_stdlib_h(void)
test_long_equals(strtol("zzzzzzzzzzzzzzzzzzzz", NULL, 36), LONG_MAX);
test_long_equals(strtol("-zzzzzzzzzzzzzzzzzzzz", NULL, 36), LONG_MIN);
+ test_double(strtod("1.5", NULL), 1.5);
+
testing_end();
}