Skip to content

Commit

Permalink
fix base32 unit_test with single quote
Browse files Browse the repository at this point in the history
  • Loading branch information
DangerousFreedom committed Sep 27, 2023
1 parent d7e89f7 commit 774fdb9
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 774fdb9

Please sign in to comment.