mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Fix StorageTest unit test on MSVC 2015.
Per https://msdn.microsoft.com/en-us/library/bb531344.aspx, "Exponent formatting", MSVC 2015 fixed the %g format to match the C standard's requirement of printing a 2-digit exponent if only 2 digits are required.
This commit is contained in:
@@ -457,7 +457,7 @@ TEST_P(StorageTestPersistent, SavePersistent) {
|
||||
std::tie(line, rem) = rem.split('\n');
|
||||
ASSERT_EQ("array boolean \"booleanarr/two\"=true,false", line);
|
||||
std::tie(line, rem) = rem.split('\n');
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||
ASSERT_EQ("double \"double/big\"=1.3e+008", line);
|
||||
#else
|
||||
ASSERT_EQ("double \"double/big\"=1.3e+08", line);
|
||||
|
||||
Reference in New Issue
Block a user