mirror of https://github.com/djcb/mu.git
test-mu-utils: update parse_date_time tests
We're using ::time_t now.
This commit is contained in:
parent
9f476295e1
commit
29ce96923a
|
@ -62,7 +62,7 @@ test_date_basic()
|
||||||
}
|
}
|
||||||
|
|
||||||
g_setenv("TZ", hki, TRUE);
|
g_setenv("TZ", hki, TRUE);
|
||||||
std::vector<std::tuple<const char*, bool/*is_first*/, int64_t>> cases = {{
|
std::vector<std::tuple<const char*, bool/*is_first*/, ::time_t>> cases = {{
|
||||||
{"2015-09-18T09:10:23", true, 1442556623},
|
{"2015-09-18T09:10:23", true, 1442556623},
|
||||||
{"1972-12-14T09:10:23", true, 93165023},
|
{"1972-12-14T09:10:23", true, 93165023},
|
||||||
{"1972-12-14T09:10", true, 93165000},
|
{"1972-12-14T09:10", true, 93165000},
|
||||||
|
@ -82,8 +82,8 @@ test_date_basic()
|
||||||
|
|
||||||
// {"fnorb", true, -1},
|
// {"fnorb", true, -1},
|
||||||
// {"fnorb", false, -1},
|
// {"fnorb", false, -1},
|
||||||
{"", false, G_MAXINT64},
|
{"", false, time_t_max},
|
||||||
{"", true, 0}
|
{"", true, time_t_min}
|
||||||
}};
|
}};
|
||||||
|
|
||||||
for (auto& test: cases) {
|
for (auto& test: cases) {
|
||||||
|
|
Loading…
Reference in New Issue