Include BCD length macros in test

This commit is contained in:
Nils O. Selåsdal
2013-10-02 22:15:55 +02:00
parent 41c58589a5
commit 6456d8abe0
+2
View File
@@ -40,6 +40,7 @@ START_TEST (test_2bcd_2_filler)
fail_if(len != 2, "len is %zu", len);
fail_if(bcd[0] != 0x21,"was 0x%x",bcd[0]);
fail_if(bcd[1] != 0xf3,"was 0x%x",bcd[1]);
fail_if(UC_BCD_LEN(strlen(ascii)) != len);
END_TEST
START_TEST (test_2bcd_3_filler)
@@ -98,6 +99,7 @@ START_TEST (test_2hex_1)
fail_if(ascii[2] != '3',"2 was %c",ascii[2]);
fail_if(ascii[3] != '4',"3 was %c",ascii[3]);
fail_if(ascii[4] != 0, "4 was %c",ascii[4]);
fail_if(UC_ASCII_LEN(sizeof bcd) != len);
END_TEST
START_TEST (test_2hex_2)