Searched refs:strings2 (Results 1 – 2 of 2) sorted by relevance
/zcbor-3.5.0-3.4.0/tests/encode/test3_corner_cases/src/ |
D | main.c | 353 struct Strings strings2 = {0}; in ZTEST() local 379 strings2.threehundrebytebstr.len = 300; in ZTEST() 380 strings2.threehundrebytebstr.value = bytes300; in ZTEST() 381 strings2.tentothirtybytetstr.len = 9; // Invalid in ZTEST() 382 strings2.tentothirtybytetstr.value = bytes300; in ZTEST() 383 strings2.cborseqSimples_cbor_count = 1; in ZTEST() 384 strings2.cborseqSimples_cbor[0].boolval = false; in ZTEST() 391 strings2.cborNumbers.value = output1; in ZTEST() 392 strings2.cborNumbers.len = out_len; in ZTEST() 393 …zassert_equal(ZCBOR_ERR_WRONG_RANGE, cbor_encode_Strings(output3, sizeof(output3), &strings2, &out… in ZTEST() [all …]
|
/zcbor-3.5.0-3.4.0/tests/decode/test5_corner_cases/src/ |
D | main.c | 428 struct Strings strings2; in ZTEST() local 435 strings1.optCborStrings.len, &strings2, NULL), NULL); in ZTEST() 438 zassert_equal(ZCBOR_SUCCESS, cbor_decode_Numbers(strings2.cborNumbers.value, in ZTEST() 439 strings2.cborNumbers.len, &numbers2, NULL), NULL); in ZTEST() 451 zassert_equal(300, strings2.threehundrebytebstr.len, NULL); in ZTEST() 452 zassert_equal(10, strings2.tentothirtybytetstr.len, NULL); in ZTEST() 460 zassert_equal(1, strings2.cborseqSimples_cbor_count, NULL); in ZTEST() 461 zassert_false(strings2.cborseqSimples_cbor[0].boolval, NULL); in ZTEST()
|