Lines Matching refs:TEST_EQUAL
39 TEST_EQUAL( mbedtls_asn1_get_tag( p, end, &len2, tag ^ 1 ),
42 TEST_EQUAL( mbedtls_asn1_get_tag( p, end, &len2, tag ), 0 );
43 TEST_EQUAL( len, len2 );
162 TEST_EQUAL( ret, 0 );
164 TEST_EQUAL( parsed_length, actual_length );
168 TEST_EQUAL( ret, MBEDTLS_ERR_ASN1_OUT_OF_DATA );
206 TEST_EQUAL( n, offset );
207 TEST_EQUAL( *rest, ',' );
210 TEST_EQUAL( n, (unsigned) tag );
211 TEST_EQUAL( *rest, ',' );
214 TEST_EQUAL( n, len );
267 TEST_EQUAL( ret, MBEDTLS_ERR_ASN1_OUT_OF_DATA );
271 TEST_EQUAL( ret, full_result );
276 TEST_EQUAL( ret, overfull_result );
322 TEST_EQUAL( ret, expected_result );
325 TEST_EQUAL( val, expected_value );
346 TEST_EQUAL( mbedtls_asn1_get_int( &p, input->x + input->len, &val ),
353 TEST_EQUAL( mbedtls_asn1_get_mpi( &p, input->x + input->len, &actual_mpi ),
355 TEST_EQUAL( mbedtls_mpi_cmp_int( &actual_mpi, 0 ), 0 );
412 TEST_EQUAL( ret, expected_result_for_int );
415 TEST_EQUAL( val, expected_value );
429 TEST_EQUAL( ret, expected_result_for_mpi );
508 TEST_EQUAL( ret, expected_result_for_enum );
511 TEST_EQUAL( val, expected_value );
539 TEST_EQUAL( mbedtls_asn1_get_mpi( &p, buf + size, &actual_mpi ),
556 TEST_EQUAL( mbedtls_asn1_get_bitstring( &p, input->x + input->len, &bs ),
560 TEST_EQUAL( bs.len, (size_t) expected_length );
561 TEST_EQUAL( bs.unused_bits, expected_unused_bits );
563 TEST_EQUAL( bs.p - input->x + bs.len, input->len );
568 TEST_EQUAL( mbedtls_asn1_get_bitstring_null( &p, input->x + input->len,
573 TEST_EQUAL( bs.len, (size_t) expected_length );
599 TEST_EQUAL( mbedtls_asn1_get_sequence_of( &p, input->x + input->len,
608 TEST_EQUAL( head.buf.tag, 0 );
610 TEST_EQUAL( head.buf.len, 0 );
620 TEST_EQUAL( cur->buf.tag, tag );
622 TEST_EQUAL( n, (size_t)( cur->buf.p - input->x ) );
625 TEST_EQUAL( n, cur->buf.len );
664 TEST_EQUAL( ret, expected_result );
665 TEST_EQUAL( *traverse_state.description, 0 );
681 TEST_EQUAL( mbedtls_asn1_get_alg( &p, input->x + input->len,
686 TEST_EQUAL( oid.tag, MBEDTLS_ASN1_OID );
687 TEST_EQUAL( oid.p - input->x, oid_offset );
688 TEST_EQUAL( oid.len, (size_t) oid_length );
689 TEST_EQUAL( params.tag, params_tag );
691 TEST_EQUAL( params.p - input->x, params_offset );
694 TEST_EQUAL( params.len, (size_t) params_length );
695 TEST_EQUAL( p - input->x, total_length );
701 TEST_EQUAL( oid.tag, MBEDTLS_ASN1_OID );
702 TEST_EQUAL( oid.p - input->x, oid_offset );
703 TEST_EQUAL( oid.len, (size_t) oid_length );
704 TEST_EQUAL( p - input->x, total_length );