Lines Matching refs:assert_true

139   assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING);  in test_empty_bs()
140 assert_true(cbor_isa_bytestring(bs)); in test_empty_bs()
142 assert_true(res.read == 1); in test_empty_bs()
150 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_embedded_bs()
151 assert_true(cbor_isa_bytestring(bs)); in test_embedded_bs()
152 assert_true(cbor_bytestring_length(bs) == 1); in test_embedded_bs()
153 assert_true(res.read == 2); in test_embedded_bs()
154 assert_true(*cbor_bytestring_handle(bs) == 0xA1); in test_embedded_bs()
163 assert_true(res.error.code == CBOR_ERR_NOTENOUGHDATA); in test_notenough_data()
169 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_short_bs1()
170 assert_true(cbor_isa_bytestring(bs)); in test_short_bs1()
171 assert_true(cbor_bytestring_length(bs) == 1); in test_short_bs1()
172 assert_true(res.read == 3); in test_short_bs1()
173 assert_true(*cbor_bytestring_handle(bs) == 0xA1); in test_short_bs1()
182 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_short_bs2()
183 assert_true(cbor_isa_bytestring(bs)); in test_short_bs2()
184 assert_true(cbor_bytestring_length(bs) == 255); in test_short_bs2()
185 assert_true(res.read == 257); in test_short_bs2()
194 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_half_bs()
195 assert_true(cbor_isa_bytestring(bs)); in test_half_bs()
196 assert_true(cbor_bytestring_length(bs) == 255); in test_half_bs()
197 assert_true(res.read == 258); in test_half_bs()
206 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_int_bs()
207 assert_true(cbor_isa_bytestring(bs)); in test_int_bs()
208 assert_true(cbor_bytestring_length(bs) == 255); in test_int_bs()
209 assert_true(res.read == 260); in test_int_bs()
218 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_long_bs()
219 assert_true(cbor_isa_bytestring(bs)); in test_long_bs()
220 assert_true(cbor_bytestring_length(bs) == 255); in test_long_bs()
221 assert_true(res.read == 264); in test_long_bs()
232 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_zero_indef()
233 assert_true(cbor_isa_bytestring(bs)); in test_zero_indef()
234 assert_true(cbor_bytestring_is_indefinite(bs)); in test_zero_indef()
235 assert_true(cbor_bytestring_chunk_count(bs) == 0); in test_zero_indef()
236 assert_true(res.read == 2); in test_zero_indef()
248 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_short_indef()
249 assert_true(cbor_isa_bytestring(bs)); in test_short_indef()
250 assert_true(cbor_bytestring_length(bs) == 0); in test_short_indef()
251 assert_true(cbor_bytestring_is_indefinite(bs)); in test_short_indef()
252 assert_true(cbor_bytestring_chunk_count(bs) == 1); in test_short_indef()
253 assert_true(res.read == 5); in test_short_indef()
254 assert_true(cbor_isa_bytestring(cbor_bytestring_chunks_handle(bs)[0])); in test_short_indef()
255 assert_true(cbor_bytestring_length(cbor_bytestring_chunks_handle(bs)[0]) == in test_short_indef()
257 assert_true(*cbor_bytestring_handle(cbor_bytestring_chunks_handle(bs)[0]) == in test_short_indef()
272 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_two_indef()
273 assert_true(cbor_isa_bytestring(bs)); in test_two_indef()
274 assert_true(cbor_bytestring_length(bs) == 0); in test_two_indef()
275 assert_true(cbor_bytestring_is_indefinite(bs)); in test_two_indef()
276 assert_true(cbor_bytestring_chunk_count(bs) == 2); in test_two_indef()
277 assert_true(res.read == 8); in test_two_indef()
278 assert_true(cbor_isa_bytestring(cbor_bytestring_chunks_handle(bs)[0])); in test_two_indef()
279 assert_true(cbor_bytestring_length(cbor_bytestring_chunks_handle(bs)[0]) == in test_two_indef()
281 assert_true(*cbor_bytestring_handle(cbor_bytestring_chunks_handle(bs)[0]) == in test_two_indef()
283 assert_true(cbor_isa_bytestring(cbor_bytestring_chunks_handle(bs)[1])); in test_two_indef()
284 assert_true(cbor_bytestring_length(cbor_bytestring_chunks_handle(bs)[1]) == in test_two_indef()
286 assert_true(*cbor_bytestring_handle(cbor_bytestring_chunks_handle(bs)[1]) == in test_two_indef()
298 assert_true(res.error.code == CBOR_ERR_NOTENOUGHDATA); in test_missing_indef()