| 9 | BOOST_AUTO_TEST_SUITE(base32_tests) |
| 10 | |
| 11 | BOOST_AUTO_TEST_CASE(base32_testvectors) |
| 12 | { |
| 13 | static const string vstrIn[] = {"","f","fo","foo","foob","fooba","foobar"}; |
| 14 | static const string vstrOut[] = {"","my======","mzxq====","mzxw6===","mzxw6yq=","mzxw6ytb","mzxw6ytboi======"}; |
| 15 | for (unsigned int i=0; i<sizeof(vstrIn)/sizeof(vstrIn[0]); i++) |
| 16 | { |
| 17 | string strEnc = EncodeBase32(vstrIn[i]); |
| 18 | BOOST_CHECK(strEnc == vstrOut[i]); |
| 19 | string strDec = DecodeBase32(vstrOut[i]); |
| 20 | BOOST_CHECK(strDec == vstrIn[i]); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | BOOST_AUTO_TEST_SUITE_END() |
nothing calls this directly
no test coverage detected