Home | History | Annotate | Download | only in tests

Lines Matching full:myint

26   Optional<int> myInt;
27 EXPECT_FALSE(myInt.has_value());
31 Optional<int> myInt(0x1337);
32 EXPECT_TRUE(myInt.has_value());
33 EXPECT_EQ(*myInt, 0x1337);
37 Optional<int> myInt(std::move(0x1337));
38 EXPECT_TRUE(myInt.has_value());
39 EXPECT_EQ(*myInt, 0x1337);
43 Optional<int> myInt;
44 EXPECT_FALSE(myInt.has_value());
45 myInt = 0x1337;
46 EXPECT_EQ(*myInt, 0x1337);
47 EXPECT_TRUE(myInt.has_value());
48 myInt.reset();
49 EXPECT_FALSE(myInt.has_value());
53 Optional<int> myInt;
54 EXPECT_FALSE(myInt.has_value());
55 myInt = std::move(0xcafe);
56 EXPECT_TRUE(myInt.has_value());
57 EXPECT_EQ(*myInt, 0xcafe);
61 Optional<int> myInt(0x1337);
64 myMovedInt = std::move(myInt);
65 EXPECT_TRUE(myInt.has_value());
71 Optional<int> myInt(0x1337);
74 myCopiedInt = myInt;
75 EXPECT_TRUE(myInt.has_value());
77 EXPECT_EQ(*myInt, 0x1337);