From 23cd725d60db32eeae3366fa9b1060a1666c792a Mon Sep 17 00:00:00 2001 From: oogee Date: Sun, 30 Jul 2023 18:41:51 +0300 Subject: [PATCH] Fix typos in testing page (18) (#61) --- CHN-18-测试框架.md | 4 ++-- ENG-18-Testing-Framework.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHN-18-测试框架.md b/CHN-18-测试框架.md index 78bd3d9..87e729e 100644 --- a/CHN-18-测试框架.md +++ b/CHN-18-测试框架.md @@ -111,7 +111,7 @@ DROGON_TEST(RemoteAPITest) REQUIRE(res == ReqResult::Ok); REQUIRE(resp != nullptr); - CHECK(resp->getStatusCode == k200Ok); + CHECK(resp->getStatusCode() == k200OK); CHECK(resp->contentType() == CT_APPLICATION_JSON); }); } @@ -129,7 +129,7 @@ DROGON_TEST(RemoteAPITestCoro) auto resp = co_await client->sendRequestCoro(req); CO_REQUIRE(resp != nullptr); - CHECK(resp->getStatusCode == k200Ok); + CHECK(resp->getStatusCode() == k200OK); CHECK(resp->contentType() == CT_APPLICATION_JSON); }; diff --git a/ENG-18-Testing-Framework.md b/ENG-18-Testing-Framework.md index 4dd9b08..b3f2425 100644 --- a/ENG-18-Testing-Framework.md +++ b/ENG-18-Testing-Framework.md @@ -111,7 +111,7 @@ DROGON_TEST(RemoteAPITest) REQUIRE(res == ReqResult::Ok); REQUIRE(resp != nullptr); - CHECK(resp->getStatusCode == k200Ok); + CHECK(resp->getStatusCode() == k200OK); CHECK(resp->contentType() == CT_APPLICATION_JSON); }); } @@ -129,7 +129,7 @@ DROGON_TEST(RemoteAPITestCoro) auto resp = co_await client->sendRequestCoro(req); CO_REQUIRE(resp != nullptr); - CHECK(resp->getStatusCode == k200Ok); + CHECK(resp->getStatusCode() == k200OK); CHECK(resp->contentType() == CT_APPLICATION_JSON); };