Add wxWebResponse::AsString() test
This commit is contained in:
parent
6530e3c08e
commit
d4362f4bca
@ -119,6 +119,13 @@ TEST_CASE_METHOD(RequestFixture, "WebRequest", "[net][.]")
|
|||||||
Run();
|
Run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SECTION("GET data as string")
|
||||||
|
{
|
||||||
|
Create("/base64/VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZw==");
|
||||||
|
Run();
|
||||||
|
REQUIRE( request->GetResponse()->AsString() == "The quick brown fox jumps over the lazy dog" );
|
||||||
|
}
|
||||||
|
|
||||||
SECTION("PUT file data")
|
SECTION("PUT file data")
|
||||||
{
|
{
|
||||||
Create("/put");
|
Create("/put");
|
||||||
|
Loading…
Reference in New Issue
Block a user