Commit b4810362 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

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
parent 722c7bdf
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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);