Use StatusCode in tests and examples (#1743)

* Use StatusCode in tests and examples

* Use StatusCode in README
This commit is contained in:
Ilya Andreev 2023-12-21 01:28:57 +03:00 committed by GitHub
parent c86f69a105
commit 5b943d9bb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 297 additions and 292 deletions

View file

@ -26,7 +26,7 @@ int main(void) {
for (int i = 0; i < 3; i++) {
StopWatch sw(to_string(i).c_str());
auto res = cli.Post("/post", body, "application/octet-stream");
assert(res->status == 200);
assert(res->status == httplib::StatusCode::OK_200);
}
return 0;