Lines Matching refs:myInt
24 Optional<int> myInt; in TEST() local
25 EXPECT_FALSE(myInt.has_value()); in TEST()
29 Optional<int> myInt(0x1337); in TEST() local
30 EXPECT_TRUE(myInt.has_value()); in TEST()
31 EXPECT_EQ(*myInt, 0x1337); in TEST()
35 Optional<int> myInt(std::move(0x1337)); in TEST() local
36 EXPECT_TRUE(myInt.has_value()); in TEST()
37 EXPECT_EQ(*myInt, 0x1337); in TEST()
41 Optional<int> myInt; in TEST() local
42 EXPECT_FALSE(myInt.has_value()); in TEST()
43 myInt = 0x1337; in TEST()
44 EXPECT_EQ(*myInt, 0x1337); in TEST()
45 EXPECT_TRUE(myInt.has_value()); in TEST()
46 myInt.reset(); in TEST()
47 EXPECT_FALSE(myInt.has_value()); in TEST()
51 Optional<int> myInt; in TEST() local
52 EXPECT_FALSE(myInt.has_value()); in TEST()
53 myInt = std::move(0xcafe); in TEST()
54 EXPECT_TRUE(myInt.has_value()); in TEST()
55 EXPECT_EQ(*myInt, 0xcafe); in TEST()
59 Optional<int> myInt(0x1337); in TEST() local
62 myMovedInt = std::move(myInt); in TEST()
63 EXPECT_FALSE(myInt.has_value()); in TEST()
69 Optional<int> myInt(0x1337); in TEST() local
72 myCopiedInt = myInt; in TEST()
73 EXPECT_TRUE(myInt.has_value()); in TEST()
75 EXPECT_EQ(*myInt, 0x1337); in TEST()