diff options
| author | Stefan Boberg <[email protected]> | 2021-09-15 22:44:32 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-15 22:44:47 +0200 |
| commit | 8f889ca565f16f41420b5e9555d6479d6dddd725 (patch) | |
| tree | e7eb81c538cfc7a7e55ecefc6caf3cb04a1f0fa1 /zenhttp/httpserver.cpp | |
| parent | Adde reminder that the content type is embedded in the IoBuffer (diff) | |
| download | zen-8f889ca565f16f41420b5e9555d6479d6dddd725.tar.xz zen-8f889ca565f16f41420b5e9555d6479d6dddd725.zip | |
Hooked up zenhttp to the test framework so tests actually run as part of zenserver-test
Diffstat (limited to 'zenhttp/httpserver.cpp')
| -rw-r--r-- | zenhttp/httpserver.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/zenhttp/httpserver.cpp b/zenhttp/httpserver.cpp index 5b5738fc4..f4a5f4345 100644 --- a/zenhttp/httpserver.cpp +++ b/zenhttp/httpserver.cpp @@ -525,7 +525,7 @@ CreateHttpServer() ////////////////////////////////////////////////////////////////////////// -TEST_CASE("http") +TEST_CASE("http.common") { using namespace std::literals; @@ -551,7 +551,12 @@ TEST_CASE("http") { for (uint8_t i = 0; i < uint8_t(HttpContentType::kCOUNT); ++i) { - CHECK_EQ(HttpContentType(i), ParseContentType(MapContentTypeToString(HttpContentType(i)))); + HttpContentType Ct{i}; + + if (Ct != HttpContentType::kUnknownContentType) + { + CHECK_EQ(Ct, ParseContentType(MapContentTypeToString(Ct))); + } } } } |