diff options
author | dreamer.dead <dreamer.dead@gmail.com> | 2016-07-20 12:18:08 +0300 |
---|---|---|
committer | dreamer.dead <dreamer.dead@gmail.com> | 2016-07-20 12:18:08 +0300 |
commit | fa2663839ca614724218d6edf45eda5df7a8298a (patch) | |
tree | 4129f45d022c7857473a85e5ea3cf2dd2e0f3a9c /test | |
parent | 5ef4c3c0766dc29bc342a777e533d3f81736d570 (diff) | |
download | gflags-fa2663839ca614724218d6edf45eda5df7a8298a.tar.gz gflags-fa2663839ca614724218d6edf45eda5df7a8298a.tar.bz2 gflags-fa2663839ca614724218d6edf45eda5df7a8298a.zip |
Fix unittests expectations related to uint32.
Diffstat (limited to 'test')
-rwxr-xr-x | test/gflags_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/gflags_unittest.cc b/test/gflags_unittest.cc index 045d012..4c079ba 100755 --- a/test/gflags_unittest.cc +++ b/test/gflags_unittest.cc @@ -601,7 +601,7 @@ TEST(SetFlagValueTest, IllegalValues) { SetCommandLineOption("test_bool", "12")); EXPECT_EQ("", - SetCommandLineOption("test_uint32", "1970")); + SetCommandLineOption("test_uint32", "-1970")); EXPECT_EQ("", SetCommandLineOption("test_int32", "7000000000000")); @@ -862,7 +862,7 @@ TEST(FlagSaverTest, CanSaveVariousTypedFlagValues) { EXPECT_EQ(2, FLAGS_test_uint32); EXPECT_EQ(-3, FLAGS_test_int64); EXPECT_EQ(4, FLAGS_test_uint64); - EXPECT_DOUBLE_EQ(4.0, FLAGS_test_double); + EXPECT_DOUBLE_EQ(5.0, FLAGS_test_double); EXPECT_EQ("good", FLAGS_test_string); } |