diff options
-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); |