Mercurial > hg > orthanc-stone
comparison UnitTestsSources/GenericToolboxTests.cpp @ 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 | b6a6ad64192a |
children | c26c18e876e3 |
comparison
equal
deleted
inserted
replaced
1751:946eb7200b82 | 1752:63e893267c98 |
---|---|
70 EXPECT_FALSE(LegitDoubleString("\n.0031E015")); | 70 EXPECT_FALSE(LegitDoubleString("\n.0031E015")); |
71 EXPECT_FALSE(LegitDoubleString(".05f")); | 71 EXPECT_FALSE(LegitDoubleString(".05f")); |
72 EXPECT_FALSE(LegitDoubleString(" 1 2 ")); | 72 EXPECT_FALSE(LegitDoubleString(" 1 2 ")); |
73 EXPECT_FALSE(LegitDoubleString(" 0.12\t")); | 73 EXPECT_FALSE(LegitDoubleString(" 0.12\t")); |
74 EXPECT_FALSE(LegitDoubleString(" 0.12")); | 74 EXPECT_FALSE(LegitDoubleString(" 0.12")); |
75 EXPECT_FALSE(LegitDoubleString("0.12\t")); | 75 EXPECT_TRUE(LegitDoubleString("0.12\t")); |
76 EXPECT_FALSE(LegitDoubleString("12\t")); | 76 EXPECT_TRUE(LegitDoubleString("12\t")); |
77 EXPECT_FALSE(LegitDoubleString(".01 23")); | 77 EXPECT_FALSE(LegitDoubleString(".01 23")); |
78 EXPECT_FALSE(LegitDoubleString(". 123")); | 78 EXPECT_FALSE(LegitDoubleString(". 123")); |
79 EXPECT_FALSE(LegitDoubleString(".5 ")); | 79 EXPECT_TRUE(LegitDoubleString(".5 ")); |
80 EXPECT_FALSE(LegitDoubleString(" .")); | 80 EXPECT_FALSE(LegitDoubleString(" .")); |
81 EXPECT_FALSE(LegitDoubleString("\n0.")); | 81 EXPECT_FALSE(LegitDoubleString("\n0.")); |
82 } | 82 } |
83 | 83 |
84 TEST(GenericToolbox, TestLegitIntegerString) | 84 TEST(GenericToolbox, TestLegitIntegerString) |