Searched refs:assert_uint8 (Results 1 – 6 of 6) sorted by relevance
/freebsd/contrib/libcbor/test/ |
H A D | array_test.c | 39 assert_uint8(cbor_array_handle(arr)[0], 1); in test_simple_array() 41 assert_uint8(intermediate, 1); in test_simple_array() 64 assert_uint8(cbor_array_handle(arr)[0], 1); in test_nested_arrays() 69 assert_uint8(cbor_array_handle(nested)[0], 1); in test_nested_arrays() 85 assert_uint8(cbor_array_handle(arr)[0], 1); in test_indef_arrays() 86 assert_uint8(cbor_array_handle(arr)[1], 2); in test_indef_arrays() 105 assert_uint8(cbor_array_handle(arr)[0], 1); in test_nested_indef_arrays() 110 assert_uint8(cbor_array_handle(nested)[0], 2); in test_nested_indef_arrays() 142 assert_uint8(cbor_move(cbor_array_get(array, 0)), 3); in test_array_replace() 143 assert_uint8(cbor_move(cbor_array_get(array, 1)), 2); in test_array_replace()
|
H A D | tag_test.c | 34 assert_uint8(cbor_move(cbor_tag_item(tag)), 0); in test_embedded_tag() 46 assert_uint8(cbor_move(cbor_tag_item(tag)), 1); in test_int8_tag() 58 assert_uint8(cbor_move(cbor_tag_item(tag)), 2); in test_int16_tag() 70 assert_uint8(cbor_move(cbor_tag_item(tag)), 3); in test_int32_tag() 83 assert_uint8(cbor_move(cbor_tag_item(tag)), 4); in test_int64_tag() 98 assert_uint8(cbor_move(cbor_tag_item(nested_tag)), 42); in test_nested_tag() 132 assert_uint8(cbor_move(cbor_tag_item(tag)), 42); in main()
|
H A D | map_test.c | 49 assert_uint8(handle[0].key, 1); in test_simple_map() 50 assert_uint8(handle[0].value, 2); in test_simple_map() 51 assert_uint8(handle[1].key, 3); in test_simple_map() 52 assert_uint8(handle[1].value, 4); in test_simple_map() 69 assert_uint8(handle[0].key, 1); in test_indef_simple_map() 70 assert_uint8(handle[0].value, 2); in test_indef_simple_map() 71 assert_uint8(handle[1].key, 3); in test_indef_simple_map() 72 assert_uint8(handle[1].value, 4); in test_indef_simple_map()
|
H A D | copy_test.c | 16 assert_uint8(copy = cbor_copy(item), 10); in test_uints() 107 assert_uint8(tmp = cbor_array_get(copy = cbor_copy(item), 0), 42); in test_def_array() 117 assert_uint8(tmp = cbor_array_get(copy = cbor_copy(item), 0), 42); in test_indef_array() 130 assert_uint8(cbor_map_handle(copy = cbor_copy(item))[0].key, 42); in test_def_map() 143 assert_uint8(cbor_map_handle(copy = cbor_copy(item))[0].key, 42); in test_indef_map() 152 assert_uint8(cbor_move(cbor_tag_item(copy = cbor_copy(item))), 42); in test_tag()
|
H A D | assertions.h | 14 void assert_uint8(cbor_item_t* item, uint8_t num);
|
H A D | assertions.c | 11 void assert_uint8(cbor_item_t* item, uint8_t num) { in assert_uint8() function
|