mirror of
https://github.com/fmtlib/fmt.git
synced 2025-03-15 16:20:59 +00:00
New tests
This commit is contained in:
parent
f8542cd988
commit
5dc3dd3d4a
@ -63,8 +63,13 @@ TEST(chrono_test, format_tm) {
|
||||
// Short year
|
||||
tm.tm_year = 999 - 1900;
|
||||
EXPECT_EQ(fmt::format("{:%Y}", tm), "0999");
|
||||
EXPECT_EQ(fmt::format("{:%C%y}", tm), "0999");
|
||||
EXPECT_EQ(fmt::format("{:%G}", tm), "0998");
|
||||
|
||||
tm.tm_year = 27 - 1900;
|
||||
EXPECT_EQ(fmt::format("{:%Y}", tm), "0027");
|
||||
EXPECT_EQ(fmt::format("{:%C%y}", tm), "0027");
|
||||
|
||||
// for week on the year
|
||||
// https://www.cl.cam.ac.uk/~mgk25/iso-time.html
|
||||
std::vector<std::string> str_tm_list = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user