projects
/
platform
/
upstream
/
gflags.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ef4c3c
)
Fix unittests expectations related to uint32.
author
dreamer.dead
<dreamer.dead@gmail.com>
Wed, 20 Jul 2016 09:18:08 +0000
(12:18 +0300)
committer
dreamer.dead
<dreamer.dead@gmail.com>
Wed, 20 Jul 2016 09:18:08 +0000
(12:18 +0300)
test/gflags_unittest.cc
patch
|
blob
|
history
diff --git
a/test/gflags_unittest.cc
b/test/gflags_unittest.cc
index
045d012
..
4c079ba
100755
(executable)
--- 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);
}