diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-03-07 10:45:13 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-03-16 14:38:28 -0400 |
commit | ccb789fe34abc4785bc4bf3e98612bcae7a66f78 (patch) | |
tree | 7a45896aa38f30deb9ade3e09d85be4083ebdd6c /src/test/test_consdiff.c | |
parent | 360d043ac726ca5354bcb3aa1f138f910defc8ec (diff) | |
download | tor-ccb789fe34abc4785bc4bf3e98612bcae7a66f78.tar.gz tor-ccb789fe34abc4785bc4bf3e98612bcae7a66f78.zip |
Test two more base64cmp cases.
Diffstat (limited to 'src/test/test_consdiff.c')
-rw-r--r-- | src/test/test_consdiff.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test_consdiff.c b/src/test/test_consdiff.c index a72b64ba32..c8fb3181a6 100644 --- a/src/test/test_consdiff.c +++ b/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: ; } |