Added test case for Pull Request #417.

parent ea5bdeb6
......@@ -5,6 +5,7 @@
#include <algorithm>
#include <chrono>
#include <iostream>
using namespace Pistache::Http;
......@@ -238,6 +239,18 @@ TEST(headers_test, date_test_asctime) {
ASSERT_EQ(dd3, expected_time_point);
}
TEST(headers_test, date_test_ostream) {
using namespace std::chrono;
std::ostringstream os;
Header::Date d4;
d4.parse("Fri, 25 Jan 2019 21:04:45.000000000 UTC");
d4.write(os);
ASSERT_EQ("Fri, 25 Jan 2019 21:04:45.000000000 UTC", os.str());
}
TEST(headers_test, host) {
Header::Host host;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment