expand unit tests

This commit is contained in:
Arvid Norberg
2015-02-14 06:14:15 +00:00
parent 1e9e8e5f26
commit e15e5fd80a
4 changed files with 39 additions and 0 deletions

View File

@@ -130,6 +130,9 @@ int test_main()
TEST_CHECK(base32decode("MZXW6YTBOI") == "foobar");
TEST_CHECK(base32decode("mZXw6yTBO1======") == "foobar");
// make sure invalid encoding returns the empty string
TEST_CHECK(base32decode("mZXw6yTBO1{#&*()=") == "");
std::string test;
for (int i = 0; i < 255; ++i)
test += char(i);