aboutsummaryrefslogtreecommitdiff
path: root/misc/tst-efgcvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/tst-efgcvt.c')
-rw-r--r--misc/tst-efgcvt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/misc/tst-efgcvt.c b/misc/tst-efgcvt.c
index fc6bbf2..780dd9a 100644
--- a/misc/tst-efgcvt.c
+++ b/misc/tst-efgcvt.c
@@ -26,7 +26,7 @@
int error_count;
-typedef struct
+typedef struct
{
double value;
int ndigit;
@@ -55,6 +55,7 @@ static testcase ecvt_tests[] =
{ 100.01, -4, 3, "" },
{ 123.01, -4, 3, "" },
{ 126.71, -4, 3, "" },
+ { 0.0, 4, 1, "0000" },
/* -1.0 is end marker. */
{ -1.0, 0, 0, "" }
};
@@ -132,13 +133,13 @@ special (void)
}
-
+
int
main (void)
{
test (ecvt_tests, ecvt, "ecvt");
test (fcvt_tests, fcvt, "fcvt");
special ();
-
+
return error_count;
}