From 6dc9c1a7408849105ce0f6d4c6b0032d8eb7bcf3 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 27 Oct 2020 12:38:14 +0100 Subject: [PATCH] Fix warning in test. --- tests/test_get_http.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_get_http.cpp b/tests/test_get_http.cpp index 5d77489..4f1225c 100644 --- a/tests/test_get_http.cpp +++ b/tests/test_get_http.cpp @@ -29,7 +29,7 @@ SCENARIO("get_http() works as expected", "[http]") THEN("Answer is not empty") { - REQUIRE(answer != ""); + REQUIRE(!answer.empty()); } } @@ -39,7 +39,7 @@ SCENARIO("get_http() works as expected", "[http]") THEN("Answer is empty") { - REQUIRE(answer == ""); + REQUIRE(answer.empty()); } } }