Commit e077b7bfe69a8c719ccf5e871111faf1401d0333

Thomas de Grivel 2023-09-19T17:15:38

fix array tests

diff --git a/test/buf_inspect_test.c b/test/buf_inspect_test.c
index f6e254a..a072f3d 100644
--- a/test/buf_inspect_test.c
+++ b/test/buf_inspect_test.c
@@ -205,11 +205,11 @@ void buf_inspect_test ()
 
 TEST_CASE(buf_inspect_array)
 {
-  BUF_INSPECT_TEST_ARRAY("(u8){0}", "(u8) {0}");
-  BUF_INSPECT_TEST_ARRAY("(u8){{0, 1}, {2, 3}}",
-                         "(u8) {{0, 1}, {2, 3}}");
-  BUF_INSPECT_TEST_ARRAY("(u8) { { { 0 , 1 } , {2 , 3 } } , { { 4 , 5 } , { 6 , 7 } } } }",
-                         "(u8) {{{0, 1}, {2, 3}}, {{4, 5}, {6, 7}}}");
+  BUF_INSPECT_TEST_ARRAY("(U8){0}", "(U8) {0}");
+  BUF_INSPECT_TEST_ARRAY("(U8){{0, 1}, {2, 3}}",
+                         "(U8) {{0, 1}, {2, 3}}");
+  BUF_INSPECT_TEST_ARRAY("(U8) { { { 0 , 1 } , {2 , 3 } } , { { 4 , 5 } , { 6 , 7 } } } }",
+                         "(U8) {{{0, 1}, {2, 3}}, {{4, 5}, {6, 7}}}");
 }
 TEST_CASE_END(buf_inspect_array)
 
diff --git a/test/buf_parse_test.c b/test/buf_parse_test.c
index ad3c190..cbadf28 100644
--- a/test/buf_parse_test.c
+++ b/test/buf_parse_test.c
@@ -750,11 +750,11 @@ void buf_parse_test ()
 
 TEST_CASE(buf_parse_array)
 {
-  BUF_PARSE_TEST_ARRAY("(u8){0}");
-  BUF_PARSE_TEST_ARRAY("(u8) {0}");
-  BUF_PARSE_TEST_ARRAY("(u8) {{0}, {0}}");
-  BUF_PARSE_TEST_ARRAY("(u8) {{{0, 1}, {2, 3}}, {{4, 5}, {6, 7}}}");
-  BUF_PARSE_TEST_ARRAY("(u8){ { 0 },{ 0 } }");
+  BUF_PARSE_TEST_ARRAY("(U8){0}");
+  BUF_PARSE_TEST_ARRAY("(U8) {0}");
+  BUF_PARSE_TEST_ARRAY("(U8) {{0}, {0}}");
+  BUF_PARSE_TEST_ARRAY("(U8) {{{0, 1}, {2, 3}}, {{4, 5}, {6, 7}}}");
+  BUF_PARSE_TEST_ARRAY("(U8){ { 0 },{ 0 } }");
 }
 TEST_CASE_END(buf_parse_array)