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); };