From a82ec3c21ac680e5bf9614bdcf50ea78a52542ce Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 13 Mar 2019 00:38:34 +0300 Subject: Add workarounds for all cl releases until 20.00 --- tests/base64/driver.cxx | 2 ++ tests/timestamp/driver.cxx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/base64/driver.cxx b/tests/base64/driver.cxx index 7870424..7746637 100644 --- a/tests/base64/driver.cxx +++ b/tests/base64/driver.cxx @@ -44,6 +44,8 @@ encode (const string& i, const string& o) is.clear (); #endif + assert (!is.eof ()); + ostringstream os; base64_encode (os, is); r = os.str () == o && is.eof (); diff --git a/tests/timestamp/driver.cxx b/tests/timestamp/driver.cxx index c8e5051..198c745 100644 --- a/tests/timestamp/driver.cxx +++ b/tests/timestamp/driver.cxx @@ -128,12 +128,12 @@ main () // assert (fail ("Apr 08 19:31:10.123456789 ABC", "%b %d %H:%M:%S%[.N] %Y")); -// This doesn't work in VC15 because their implementation of std::get_time() +// This doesn't work in VC16 because their implementation of std::get_time() // has a bug. Due to this bug std::get_time() parses the input // "Apr 19:31:10 2016" for the format "%b %d %H:%M:%S %Y" as if the input were // "Apr 19 00:31:10 2016". // -#if !defined(_MSC_VER) || _MSC_VER >= 1920 +#if !defined(_MSC_VER) || _MSC_VER >= 2000 assert (fail ("Apr 19:31:10 2016", "%b %d %H:%M:%S %Y")); assert (fail (":31 2016", "%H:%M %Y")); #endif -- cgit v1.1