Lines Matching refs:test
68 struct testdata *test = &tbl_testdata[test_index]; in test_hexstr_sep_to_from() local
70 if (!TEST_ptr(buf = ossl_hexstr2buf_sep(test->in, &len, test->sep)) in test_hexstr_sep_to_from()
71 || !TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_sep_to_from()
72 || !TEST_ptr(out = ossl_buf2hexstr_sep(buf, len, test->sep)) in test_hexstr_sep_to_from()
73 || !TEST_str_eq(out, test->in)) in test_hexstr_sep_to_from()
89 struct testdata *test = &tbl_testdata[test_index]; in test_hexstr_to_from() local
91 if (test->sep != '_') { in test_hexstr_to_from()
92 if (!TEST_ptr(buf = OPENSSL_hexstr2buf(test->in, &len)) in test_hexstr_to_from()
93 || !TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_to_from()
96 if (test->sep == ':') { in test_hexstr_to_from()
97 if (!TEST_str_eq(out, test->in)) in test_hexstr_to_from()
99 } else if (!TEST_str_ne(out, test->in)) { in test_hexstr_to_from()
103 if (!TEST_ptr_null(buf = OPENSSL_hexstr2buf(test->in, &len))) in test_hexstr_to_from()
118 struct testdata *test = &tbl_testdata[test_index]; in test_hexstr_ex_to_from() local
120 return TEST_true(OPENSSL_hexstr2buf_ex(buf, sizeof(buf), &len, test->in, ':')) in test_hexstr_ex_to_from()
121 && TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_ex_to_from()
126 && TEST_str_eq(out, test->in) in test_hexstr_ex_to_from()