Searched refs:assert_uint8 (Results 1 – 6 of 6) sorted by relevance
/netbsd-src/external/mit/libcbor/dist/test/ |
H A D | type_4_test.c | 44 assert_uint8(cbor_array_handle(arr)[0], 1); in test_simple_array() 46 assert_uint8(intermediate, 1); in test_simple_array() 69 assert_uint8(cbor_array_handle(arr)[0], 1); in test_nested_arrays() 74 assert_uint8(cbor_array_handle(nested)[0], 1); in test_nested_arrays() 90 assert_uint8(cbor_array_handle(arr)[0], 1); in test_indef_arrays() 91 assert_uint8(cbor_array_handle(arr)[1], 2); in test_indef_arrays() 110 assert_uint8(cbor_array_handle(arr)[0], 1); in test_nested_indef_arrays() 115 assert_uint8(cbor_array_handle(nested)[0], 2); in test_nested_indef_arrays()
|
H A D | type_6_test.c | 27 assert_uint8(cbor_tag_item(tag), 0); in test_embedded_tag() 39 assert_uint8(cbor_tag_item(tag), 1); in test_int8_tag() 51 assert_uint8(cbor_tag_item(tag), 2); in test_int16_tag() 63 assert_uint8(cbor_tag_item(tag), 3); in test_int32_tag() 76 assert_uint8(cbor_tag_item(tag), 4); in test_int64_tag() 90 assert_uint8(cbor_tag_item(cbor_tag_item(tag)), 42); in test_nested_tag()
|
H A D | type_5_test.c | 47 assert_uint8(handle[0].key, 1); in test_simple_map() 48 assert_uint8(handle[0].value, 2); in test_simple_map() 49 assert_uint8(handle[1].key, 3); in test_simple_map() 50 assert_uint8(handle[1].value, 4); in test_simple_map() 67 assert_uint8(handle[0].key, 1); in test_indef_simple_map() 68 assert_uint8(handle[0].value, 2); in test_indef_simple_map() 69 assert_uint8(handle[1].key, 3); in test_indef_simple_map() 70 assert_uint8(handle[1].value, 4); in test_indef_simple_map()
|
H A D | copy_test.c | 21 assert_uint8(copy = cbor_copy(item), 10); in test_uints() 112 assert_uint8(tmp = cbor_array_get(copy = cbor_copy(item), 0), 42); in test_def_array() 122 assert_uint8(tmp = cbor_array_get(copy = cbor_copy(item), 0), 42); in test_indef_array() 135 assert_uint8(cbor_map_handle(copy = cbor_copy(item))[0].key, 42); in test_def_map() 148 assert_uint8(cbor_map_handle(copy = cbor_copy(item))[0].key, 42); in test_indef_map() 157 assert_uint8(cbor_tag_item(copy = cbor_copy(item)), 42); in test_tag()
|
H A D | assertions.h | 12 void assert_uint8(cbor_item_t* item, uint8_t num);
|
H A D | assertions.c | 10 void assert_uint8(cbor_item_t* item, uint8_t num) { in assert_uint8() function
|