Searched refs:int32 (Results 1 – 4 of 4) sorted by relevance
/zcbor-latest/tests/unit/test1_unit_tests/src/ |
D | main.c | 18 int32_t int32; in ZTEST() local 37 zassert_false(zcbor_int32_decode(state_d, &int32), NULL); in ZTEST() 46 zassert_false(zcbor_int32_decode(state_d, &int32), NULL); in ZTEST() 703 int32_t int32 = 12345678; in ZTEST() local 708 zassert_true(zcbor_int_encode(state_e, &int32, sizeof(int32)), NULL); in ZTEST() 714 int32 = -12345678; in ZTEST() 719 zassert_true(zcbor_int_encode(state_e, &int32, sizeof(int32)), NULL); in ZTEST() 741 zassert_false(zcbor_int_decode(state_d, &int32, sizeof(int8)), NULL); in ZTEST() 742 zassert_false(zcbor_int_decode(state_d, &int32, sizeof(int16)), NULL); in ZTEST() 743 zassert_true(zcbor_int_decode(state_d, &int32, sizeof(int32)), NULL); in ZTEST() [all …]
|
/zcbor-latest/tests/cases/ |
D | corner_cases.cddl | 24 int32: int .size 4,
|
/zcbor-latest/tests/decode/test5_corner_cases/src/ |
D | main.c | 188 zassert_equal(-0x80000000L, numbers2.int32, NULL); in ZTEST() 199 zassert_equal(0x7FFFFFFFL, numbers2.int32, NULL); in ZTEST() 227 zassert_equal(sizeof(numbers2.int32) == 4 ? ZCBOR_ERR_INT_SIZE : ZCBOR_ERR_WRONG_RANGE, in ZTEST() 230 zassert_equal(sizeof(numbers2.int32) == 4 ? ZCBOR_ERR_INT_SIZE : ZCBOR_ERR_WRONG_RANGE, in ZTEST()
|
/zcbor-latest/tests/encode/test3_corner_cases/src/ |
D | main.c | 95 .int32 = -0x80000000L, in ZTEST()
|