summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regress/lib/libc/gcvt/gcvt_test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/regress/lib/libc/gcvt/gcvt_test.c b/src/regress/lib/libc/gcvt/gcvt_test.c
index b976a7dfe6..aed34e3d58 100644
--- a/src/regress/lib/libc/gcvt/gcvt_test.c
+++ b/src/regress/lib/libc/gcvt/gcvt_test.c
@@ -37,6 +37,7 @@ static struct test_vector {
37 { 1.0, 0, "1" }, 37 { 1.0, 0, "1" },
38 { 1.0, 2, "1" }, 38 { 1.0, 2, "1" },
39 { 1.0, 10, "1" }, 39 { 1.0, 10, "1" },
40 { 1.236, -1, "1.236" },
40 { 1.236, 0, "1" }, 41 { 1.236, 0, "1" },
41 { 1.236, 1, "1" }, 42 { 1.236, 1, "1" },
42 { 1.236, 2, "1.2" }, 43 { 1.236, 2, "1.2" },
@@ -44,6 +45,7 @@ static struct test_vector {
44 { 1.236, 4, "1.236" }, 45 { 1.236, 4, "1.236" },
45 { 1.236, 5, "1.236" }, 46 { 1.236, 5, "1.236" },
46 { 1.236, 6, "1.236" }, 47 { 1.236, 6, "1.236" },
48 { 12.36, -1, "12.36" },
47 { 12.36, 0, "1e+01" }, 49 { 12.36, 0, "1e+01" },
48 { 12.36, 1, "1e+01" }, 50 { 12.36, 1, "1e+01" },
49 { 12.36, 2, "12" }, 51 { 12.36, 2, "12" },
@@ -51,6 +53,7 @@ static struct test_vector {
51 { 12.36, 4, "12.36" }, 53 { 12.36, 4, "12.36" },
52 { 12.36, 5, "12.36" }, 54 { 12.36, 5, "12.36" },
53 { 12.36, 6, "12.36" }, 55 { 12.36, 6, "12.36" },
56 { 123.6, -1, "123.6" },
54 { 123.6, 0, "1e+02" }, 57 { 123.6, 0, "1e+02" },
55 { 123.6, 1, "1e+02" }, 58 { 123.6, 1, "1e+02" },
56 { 123.6, 2, "1.2e+02" }, 59 { 123.6, 2, "1.2e+02" },
@@ -58,6 +61,7 @@ static struct test_vector {
58 { 123.6, 4, "123.6" }, 61 { 123.6, 4, "123.6" },
59 { 123.6, 5, "123.6" }, 62 { 123.6, 5, "123.6" },
60 { 123.6, 6, "123.6" }, 63 { 123.6, 6, "123.6" },
64 { 1236.0, -1, "1236" },
61 { 1236.0, 0, "1e+03" }, 65 { 1236.0, 0, "1e+03" },
62 { 1236.0, 1, "1e+03" }, 66 { 1236.0, 1, "1e+03" },
63 { 1236.0, 2, "1.2e+03" }, 67 { 1236.0, 2, "1.2e+03" },
@@ -67,12 +71,14 @@ static struct test_vector {
67 { 1236.0, 6, "1236" }, 71 { 1236.0, 6, "1236" },
68 { 1e100, 10, "1e+100" }, 72 { 1e100, 10, "1e+100" },
69 { 1e100, 20, "1.0000000000000000159e+100" }, 73 { 1e100, 20, "1.0000000000000000159e+100" },
74 { 0.01236, -1, "0.01236" },
70 { 0.01236, 0, "0.01" }, 75 { 0.01236, 0, "0.01" },
71 { 0.01236, 1, "0.01" }, 76 { 0.01236, 1, "0.01" },
72 { 0.01236, 2, "0.012" }, 77 { 0.01236, 2, "0.012" },
73 { 0.01236, 3, "0.0124" }, 78 { 0.01236, 3, "0.0124" },
74 { 0.01236, 4, "0.01236" }, 79 { 0.01236, 4, "0.01236" },
75 { 1e-100, 20, "1.00000000000000002e-100" }, 80 { 1e-100, 20, "1.00000000000000002e-100" },
81 { 1e-100, -1, "1e-100" },
76 { -1.2, 5, "-1.2" }, 82 { -1.2, 5, "-1.2" },
77 { -0.03, 5, "-0.03" }, 83 { -0.03, 5, "-0.03" },
78 { 0.1, 1, "0.1" }, 84 { 0.1, 1, "0.1" },