Skip to content

Commit

Permalink
Merge pull request monero-project#10 from DangerousFreedom1984/base32…
Browse files Browse the repository at this point in the history
…_quotes

fix base32 unit_test with single quote
  • Loading branch information
rbrunner7 authored Sep 29, 2023
2 parents d7e89f7 + 774fdb9 commit 7b3443e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit_tests/base32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "gtest/gtest.h"

#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <fstream>
#include <string>
Expand Down Expand Up @@ -370,5 +371,5 @@ TEST(base32, bad_chars)
for (const char c : BASE32_UNALLOWED)
EXPECT_EQ(base32::BADC, base32::JAMTIS_INVERTED_ALPHABET[(unsigned) c]);

EXPECT_EQ(base32::IGNC, base32::JAMTIS_INVERTED_ALPHABET[(unsigned) "-"]);
EXPECT_EQ(base32::IGNC, base32::JAMTIS_INVERTED_ALPHABET[(unsigned) '-']);
}

0 comments on commit 7b3443e

Please sign in to comment.