Skip to content

Commit 4b0716f

Browse files
committed
updated autotest CRC's to reflect updates to nanoprintf (mainly rounding overflow changes)
1 parent 541f300 commit 4b0716f

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

test/issues/511/autotest.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
"description": "Test 1",
4242
"start": "vram_start",
4343
"size": "vram_16_size",
44-
"expected_CRCs": [ "0C357809" ]
44+
"expected_CRCs": [ "0C357809", "96B924C4" ]
4545
},
4646
"2":
4747
{
4848
"description": "Test 2",
4949
"start": "vram_start",
5050
"size": "vram_16_size",
51-
"expected_CRCs": [ "C37E4C46" ]
51+
"expected_CRCs": [ "C37E4C46", "49D4B4DC" ]
5252
},
5353
"3":
5454
{
@@ -97,14 +97,14 @@
9797
"description": "Test 9",
9898
"start": "vram_start",
9999
"size": "vram_16_size",
100-
"expected_CRCs": [ "0D88654C" ]
100+
"expected_CRCs": [ "0D88654C", "871F430C" ]
101101
},
102102
"10":
103103
{
104104
"description": "Test 10",
105105
"start": "vram_start",
106106
"size": "vram_16_size",
107-
"expected_CRCs": [ "DE8AD0AF" ]
107+
"expected_CRCs": [ "DE8AD0AF", "D47EBD22" ]
108108
},
109109
"11":
110110
{

test/issues/511/src/main.c

+12-12
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ int main(void)
99
{
1010
static const uint8_t values[][4] =
1111
{
12-
{ 0xcf, 0x7f, 0x39, 0xbe }, /* -0.181151 */
13-
{ 0xcf, 0xff, 0x39, 0xbe }, /* -0.181639 */
12+
{ 0xcf, 0x7f, 0x39, 0xbe }, /* -0.18115161359 */
13+
{ 0xcf, 0xff, 0x39, 0xbe }, /* -0.18163998 */
1414
{ 0x00, 0x00, 0x00, 0x00 }, /* +0 */
1515
{ 0x00, 0x00, 0x00, 0x80 }, /* -0 */
1616
{ 0x00, 0x00, 0x80, 0x7f }, /* +inf */
@@ -23,16 +23,16 @@ int main(void)
2323

2424
/* expected output */
2525
/*
26-
inf = N, NaN = N: -0.181151 (cf 7f 39 be)
27-
inf = N, NaN = N: -0.181639 (cf ff 39 be)
28-
inf = N, NaN = N: 0.000000 (00 00 00 00)
29-
inf = N, NaN = N: -0.000000 (00 00 00 80)
30-
inf = Y, NaN = N: inf (00 00 80 7f)
31-
inf = Y, NaN = N: -inf (00 00 80 ff)
32-
inf = N, NaN = Y: nan (00 01 80 7f)
33-
inf = N, NaN = Y: -nan (00 01 80 ff)
34-
inf = N, NaN = N: oor (00 00 10 7f)
35-
inf = N, NaN = N: -oor (00 00 10 ff)
26+
Test 1: inf = N, NaN = N: -0.181152 (cf 7f 39 be)
27+
Test 2: inf = N, NaN = N: -0.181640 (cf ff 39 be)
28+
Test 3: inf = N, NaN = N: 0.000000 (00 00 00 00)
29+
Test 4: inf = N, NaN = N: -0.000000 (00 00 00 80)
30+
Test 5: inf = Y, NaN = N: inf (00 00 80 7f)
31+
Test 6: inf = Y, NaN = N: -inf (00 00 80 ff)
32+
Test 7: inf = N, NaN = Y: nan (00 01 80 7f)
33+
Test 8: inf = N, NaN = Y: -nan (00 01 80 ff)
34+
Test 9: inf = N, NaN = N: err (00 00 10 7f)
35+
Test 10: inf = N, NaN = N: -err (00 00 10 ff)
3636
*/
3737

3838
for (size_t i = 0; i < sizeof(values) / sizeof(*values); ++i)

0 commit comments

Comments
 (0)