Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11157


Ignore:
Timestamp:
Mar 26, 2016, 3:02:11 PM (4 years ago)
Author:
landauf
Message:

don't test exact values here, only ≠ 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/test/util/StringUtilsTest.cc

    r9114 r11157  
    267267        EXPECT_EQ(0, nocaseCmp("TesT", "teST"));
    268268
    269         EXPECT_EQ(strcmp("a", "b"), nocaseCmp("a", "b"));
    270         EXPECT_EQ(strcmp("b", "a"), nocaseCmp("b", "a"));
    271         EXPECT_EQ(strcmp("hello", "world"), nocaseCmp("hello", "world"));
     269        EXPECT_EQ(strcmp("a", "b") < 0, nocaseCmp("a", "b") < 0);
     270        EXPECT_EQ(strcmp("b", "a") > 0, nocaseCmp("b", "a") > 0);
     271        EXPECT_EQ(strcmp("hello", "world") < 0, nocaseCmp("hello", "world") < 0);
    272272    }
    273273
Note: See TracChangeset for help on using the changeset viewer.