bug fixes for decode maps-as-arrays mode
diff --git a/test/qcbor_decode_tests.c b/test/qcbor_decode_tests.c
index 4f7c5d3..34c8b1c 100644
--- a/test/qcbor_decode_tests.c
+++ b/test/qcbor_decode_tests.c
@@ -840,8 +840,8 @@
if((nCBORError = QCBORDecode_GetNext(&DCtx, &Item))) {
return nCBORError;
}
- if(Item.uDataType != QCBOR_TYPE_MAP ||
- Item.val.uCount != 6) { // TODO: this should be 6
+ if(Item.uDataType != QCBOR_TYPE_MAP_AS_ARRAY ||
+ Item.val.uCount != 6) {
return -1;
}
@@ -927,8 +927,8 @@
if(Item.uLabelType != QCBOR_TYPE_NONE ||
Item.uDataAlloc ||
Item.uLabelAlloc ||
- Item.uDataType != QCBOR_TYPE_MAP ||
- Item.val.uCount != 4) { // TODO: is this correct?
+ Item.uDataType != QCBOR_TYPE_MAP_AS_ARRAY ||
+ Item.val.uCount != 8) {
return -9;
}