aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-06-10 13:26:27 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-06-11 10:25:02 +0300
commit8483129b6a4746247fd7fb3b5554e10181ad937a (patch)
tree379590c11696dea9aeb1532886ddead944b65d37 /tests
parent70314b3303f712a0277b80b23bc3613744e6178e (diff)
Add workaround for MinGW GCC bug so to_stream(timestamp) properly handles %e specifier
Diffstat (limited to 'tests')
-rw-r--r--tests/timestamp/driver.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/timestamp/driver.cxx b/tests/timestamp/driver.cxx
index 11e1821..6283798 100644
--- a/tests/timestamp/driver.cxx
+++ b/tests/timestamp/driver.cxx
@@ -199,6 +199,9 @@ main ()
"%[.N]%Y-%m-%d %H:%M:%S",
"." + ns (384902285) + "2016-02-21 19:31:10"));
+ assert (parse ("Feb 1 2016", "%b %e %Y", "Feb 1 2016"));
+ assert (parse ("Feb 11 2016", "%b %e %Y", "Feb 11 2016"));
+
// setlocale (LC_ALL, "");
// setlocale (LC_ALL, "de_DE.utf-8");
// setlocale (LC_ALL, "de-de");