#include #include #include "requests.h" TEST(RequestsTest, HttpsGetTest) { requestsInit(); std::string expected = "\n\n\nBen Shiller"; for (int i = 0; i < 10; ++i) { GetRequestResult result = requestsGet("https://shillerben.com"); // std::cout << "GET https://shillerben.com returned: " << result.data << '\n'; ASSERT_EQ(strncmp(result.data, expected.c_str(), expected.size()), 0); free(result.data); } requestsCleanup(); }