Browse Source

Boost::tuple: fix compiler-specifc test.

Kim Kulling 10 năm trước cách đây
mục cha
commit
6be8df5fde
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      test/unit/utNoBoostTest.cpp

+ 3 - 3
test/unit/utNoBoostTest.cpp

@@ -36,12 +36,12 @@ TEST(NoBoostTest, Tuple) {
     EXPECT_EQ(4U, first.get<1>());
     EXPECT_EQ(4U, first.get<1>());
     EXPECT_EQ(4U, first.get<2>());
     EXPECT_EQ(4U, first.get<2>());
 
 
-    boost::tuple<int,float,double,bool,another> second;
+    boost::tuple<int, float, double, bool, another> second;
     bool b = second.get<3>();
     bool b = second.get<3>();
-    EXPECT_FALSE(b);
 
 
-    // check empty tuple, ignore compile warning
+    // check empty tuple
     boost::tuple<> third;
     boost::tuple<> third;
+    third;
 
 
     // FIXME: Explicit conversion not really required yet
     // FIXME: Explicit conversion not really required yet
     boost::tuple<float,float,float> last =
     boost::tuple<float,float,float> last =