mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-23 10:36:37 +01:00
fix test
This commit is contained in:
parent
a91f9a0afa
commit
c792d52474
@ -222,8 +222,8 @@ void Base64Test::testDecoderURL()
|
||||
assert (decoder.good() && decoder.get() == -1);
|
||||
}
|
||||
{
|
||||
std::istringstream istr("AAECAw==", Poco::BASE64_URL_ENCODING);
|
||||
Base64Decoder decoder(istr);
|
||||
std::istringstream istr("AAECAw==");
|
||||
Base64Decoder decoder(istr, Poco::BASE64_URL_ENCODING);
|
||||
assert (decoder.good() && decoder.get() == 0);
|
||||
assert (decoder.good() && decoder.get() == 1);
|
||||
assert (decoder.good() && decoder.get() == 2);
|
||||
@ -231,8 +231,8 @@ void Base64Test::testDecoderURL()
|
||||
assert (decoder.good() && decoder.get() == -1);
|
||||
}
|
||||
{
|
||||
std::istringstream istr("QUJDREVG", Poco::BASE64_URL_ENCODING);
|
||||
Base64Decoder decoder(istr);
|
||||
std::istringstream istr("QUJDREVG");
|
||||
Base64Decoder decoder(istr, Poco::BASE64_URL_ENCODING);
|
||||
std::string s;
|
||||
decoder >> s;
|
||||
assert (s == "ABCDEF");
|
||||
|
Loading…
x
Reference in New Issue
Block a user