diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-22 00:29:39 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-22 00:29:39 +0000 |
commit | b481036266d699e9fb57f6fe4dab8ef329ca3702 (patch) | |
tree | 792786ac08c58ff56c40ecacbdd18d8be1125b89 | |
parent | 722c7bdff46cc17462e4f7fe890774883e304a62 (diff) | |
download | tor-b481036266d699e9fb57f6fe4dab8ef329ca3702.tar.gz tor-b481036266d699e9fb57f6fe4dab8ef329ca3702.zip |
r16014@catbus: nickm | 2007-10-21 20:29:14 -0400
Fix a unit test in test_crypto_base32_decode that would fail one time in 32.
svn:r12087
-rw-r--r-- | src/or/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/test.c b/src/or/test.c index 3d2c6079df..6e774be66a 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -3207,10 +3207,10 @@ test_crypto_base32_decode(void) test_eq(res, 0); test_memeq(plain, decoded, 60); /* Change encoded string and decode. */ - if (encoded[0] == 'a') - encoded[0] = 'b'; + if (encoded[0] == 'A' || encoded[0] == 'a') + encoded[0] = 'B'; else - encoded[0] = 'a'; + encoded[0] = 'A'; res = base32_decode(decoded, 60, encoded, 96); test_eq(res, 0); test_memneq(plain, decoded, 60); |