1 | #include <gtest/gtest.h> |
---|---|
2 | |
3 | #include <common/DateLUT.h> |
4 | #include <IO/WriteHelpers.h> |
5 | #include <IO/WriteBufferFromString.h> |
6 | |
7 | |
8 | TEST(RFC1123, Test) |
9 | { |
10 | using namespace DB; |
11 | WriteBufferFromOwnString out; |
12 | writeDateTimeTextRFC1123(1111111111, out, DateLUT::instance("UTC")); |
13 | ASSERT_EQ(out.str(), "Fri, 18 Mar 2005 01:58:31 GMT"); |
14 | } |
15 |