Test two more base64cmp cases.

This commit is contained in:
Nick Mathewson
2017-03-07 10:45:13 -05:00
parent 360d043ac7
commit ccb789fe34
+4
View File
@@ -409,6 +409,10 @@ test_consdiff_base64cmp(void *arg)
tt_int_op(1, OP_EQ, strcmp("afoo", "Afoo"));
tt_int_op(1, OP_EQ, base64cmp("afoo", "Afoo"));
/* Different lengths */
tt_int_op(-1, OP_EQ, base64cmp("afoo", "afooo"));
tt_int_op(1, OP_EQ, base64cmp("afooo", "afoo"));
done:
;
}