changeset 1752:63e893267c98

Fixed bogus refs in UT. Trailing spaces ARE allowed!
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 22 Feb 2021 21:04:54 +0100
parents 946eb7200b82
children f19f69476d9d
files UnitTestsSources/GenericToolboxTests.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/UnitTestsSources/GenericToolboxTests.cpp	Mon Feb 22 14:57:01 2021 +0100
+++ b/UnitTestsSources/GenericToolboxTests.cpp	Mon Feb 22 21:04:54 2021 +0100
@@ -72,11 +72,11 @@
   EXPECT_FALSE(LegitDoubleString(" 1 2 "));
   EXPECT_FALSE(LegitDoubleString(" 0.12\t"));
   EXPECT_FALSE(LegitDoubleString(" 0.12"));
-  EXPECT_FALSE(LegitDoubleString("0.12\t"));
-  EXPECT_FALSE(LegitDoubleString("12\t"));
+  EXPECT_TRUE(LegitDoubleString("0.12\t"));
+  EXPECT_TRUE(LegitDoubleString("12\t"));
   EXPECT_FALSE(LegitDoubleString(".01 23"));
   EXPECT_FALSE(LegitDoubleString(". 123"));
-  EXPECT_FALSE(LegitDoubleString(".5 "));
+  EXPECT_TRUE(LegitDoubleString(".5 "));
   EXPECT_FALSE(LegitDoubleString(" ."));
   EXPECT_FALSE(LegitDoubleString("\n0."));
 }