homogenous arrays starting to work
diff --git a/test/qcbor_decode_tests.c b/test/qcbor_decode_tests.c
index 779b094..3197cf3 100644
--- a/test/qcbor_decode_tests.c
+++ b/test/qcbor_decode_tests.c
@@ -8003,3 +8003,43 @@
return 0;
}
+
+
+int32_t DecodeArraysOfTest(void)
+{
+ int64_t ints[] = {-1, 0, 5000, -9000};
+
+ QCBOREncodeContext EC;
+
+ MakeUsefulBufOnStack(xx, 100);
+ QCBOREncode_Init(&EC, xx);
+
+ QCBOREncode_AddArrayOfInts(&EC,
+ QCBOR_TAG_REQUIREMENT_NOT_A_TAG,
+ ints,
+ 4);
+ UsefulBufC Encoded;
+ QCBOREncode_Finish(&EC, &Encoded);
+
+
+ QCBORDecodeContext DC;
+
+ int64_t i2[6];
+ size_t count;
+
+ QCBORDecode_Init(&DC, Encoded, 0);
+
+ QCBORDecode_GetArrayOfInt64(&DC,
+ QCBOR_TAG_REQUIREMENT_NOT_A_TAG,
+ 6,
+ i2,
+ &count);
+
+
+
+
+
+
+
+ return 0;
+}
diff --git a/test/qcbor_decode_tests.h b/test/qcbor_decode_tests.h
index 54e125a..2980b99 100644
--- a/test/qcbor_decode_tests.h
+++ b/test/qcbor_decode_tests.h
@@ -314,4 +314,10 @@
int32_t BoolTest(void);
+/*
+Test decoding of arrays of integers, strings...
+*/
+int32_t DecodeArraysOfTest(void);
+
+
#endif /* defined(__QCBOR__qcbort_decode_tests__) */
diff --git a/test/run_tests.c b/test/run_tests.c
index 53d83f6..04f600a 100644
--- a/test/run_tests.c
+++ b/test/run_tests.c
@@ -137,7 +137,8 @@
TEST_ENTRY(ExponentAndMantissaEncodeTests),
#endif /* QCBOR_DISABLE_EXP_AND_MANTISSA */
TEST_ENTRY(ParseEmptyMapInMapTest),
- TEST_ENTRY(BoolTest)
+ TEST_ENTRY(BoolTest),
+ TEST_ENTRY(DecodeArraysOfTest)
};