EXPECT_TRUE(m2 > m1);
EXPECT_TRUE(m2 >= m1);
EXPECT_TRUE(m1 != m2);
- EXPECT_TRUE(m1 == m1);
+ EXPECT_TRUE(m1 == (m1));
EXPECT_FALSE(m1 == m2);
// Also test the copy constructor and assignment operator
Optional<int> o1(1);
Optional<int> o2(2);
- EXPECT_TRUE(o_ <= o_);
- EXPECT_TRUE(o_ == o_);
- EXPECT_TRUE(o_ >= o_);
+ EXPECT_TRUE(o_ <= (o_));
+ EXPECT_TRUE(o_ == (o_));
+ EXPECT_TRUE(o_ >= (o_));
EXPECT_TRUE(o1 < o2);
EXPECT_TRUE(o1 <= o2);
- EXPECT_TRUE(o1 <= o1);
- EXPECT_TRUE(o1 == o1);
+ EXPECT_TRUE(o1 <= (o1));
+ EXPECT_TRUE(o1 == (o1));
EXPECT_TRUE(o1 != o2);
- EXPECT_TRUE(o1 >= o1);
+ EXPECT_TRUE(o1 >= (o1));
EXPECT_TRUE(o2 >= o1);
EXPECT_TRUE(o2 > o1);
EXPECT_FALSE(o2 <= o1);
EXPECT_FALSE(o2 <= o1);
EXPECT_FALSE(o2 == o1);
- EXPECT_FALSE(o1 != o1);
+ EXPECT_FALSE(o1 != (o1));
EXPECT_FALSE(o1 >= o2);
EXPECT_FALSE(o1 >= o2);
EXPECT_FALSE(o1 > o2);