Browse Source

Test two more base64cmp cases.

Nick Mathewson 7 years ago
parent
commit
ccb789fe34
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/test/test_consdiff.c

+ 4 - 0
src/test/test_consdiff.c

@@ -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:
   ;
 }