Lines Matching refs:e2
60 exp_complex e2; in TEST() local
61 EXPECT_TRUE(e2.has_value()); in TEST()
62 EXPECT_EQ(T(0,0), e2.value()); in TEST()
70 exp_int e2 = e; in TEST() local
73 EXPECT_TRUE(e2.has_value()); in TEST()
75 EXPECT_EQ(0, e2.value()); in TEST()
85 exp_int e2 = std::move(e); in TEST() local
88 EXPECT_TRUE(e2.has_value()); in TEST()
90 EXPECT_EQ(0, e2.value()); in TEST()
108 exp_int e2 = e; in TEST() local
111 EXPECT_TRUE(e2.has_value()); in TEST()
113 EXPECT_EQ(3, e2.value()); in TEST()
118 exp_int e2 = std::move(e); in TEST() local
121 EXPECT_TRUE(e2.has_value()); in TEST()
123 EXPECT_EQ(3, e2.value()); in TEST()
128 exp_double e2 = 5.5f; in TEST() local
134 EXPECT_TRUE(e2.has_value()); in TEST()
139 EXPECT_EQ(5.5f, e2.value()); in TEST()
155 exp_string e2 = "hello"; // char* to std::string in TEST() local
159 EXPECT_TRUE(e2.has_value()); in TEST()
160 EXPECT_EQ("hello", e2.value()); in TEST()
168 exp_double e2 = unexp2; in TEST() local
177 EXPECT_FALSE(e2.has_value()); in TEST()
181 EXPECT_EQ(10.5f, e2.error()); in TEST()
188 exp_double e2 = unexpected(10.5f); in TEST() local
193 EXPECT_FALSE(e2.has_value()); in TEST()
197 EXPECT_EQ(10.5f, e2.error()); in TEST()
207 exp_string e2({'a', 'b', 'c'}); in TEST() local
208 EXPECT_TRUE(e2.has_value()); in TEST()
209 EXPECT_EQ("abc", e2.value()); in TEST()
235 exp_int e2 = 20; in TEST() local
236 e = e2; in TEST()
239 EXPECT_EQ(20, e2.value()); in TEST()
262 exp_double e2 = 3.5f; in TEST() local
263 e2 = 10.5f; in TEST()
264 EXPECT_EQ(10.5f, e2.value()); in TEST()
282 exp_double e2 = 3.5f; in TEST() local
283 e2 = unexpected(10.5f); in TEST()
284 EXPECT_FALSE(e2.has_value()); in TEST()
285 EXPECT_EQ(10.5f, e2.error()); in TEST()
342 exp_int e2 = 20; in TEST() local
343 e.swap(e2); in TEST()
346 EXPECT_TRUE(e2.has_value()); in TEST()
348 EXPECT_EQ(10, e2.value()); in TEST()
360 exp_int e2 = unexpected(20); in TEST() local
361 e.swap(e2); in TEST()
363 EXPECT_FALSE(e2.has_value()); in TEST()
365 EXPECT_EQ(10, e2.error()); in TEST()
378 exp_int e2 = unexpected(30); in TEST() local
379 e.swap(e2); in TEST()
381 EXPECT_TRUE(e2.has_value()); in TEST()
383 EXPECT_EQ(10, e2.value()); in TEST()
414 exp_int e2 = unexpected(10); in TEST() local
415 EXPECT_FALSE(e2.ok()); in TEST()
416 EXPECT_FALSE(e2.has_value()); in TEST()
424 exp_int e2 = unexpected(10); in TEST() local
425 EXPECT_EQ(10, e2.error()); in TEST()
426 EXPECT_EQ(20, e2.value_or(20)); in TEST()
431 exp_int e2 = 10; in TEST() local
432 EXPECT_TRUE(e == e2); in TEST()
433 EXPECT_TRUE(e2 == e); in TEST()
434 EXPECT_FALSE(e != e2); in TEST()
435 EXPECT_FALSE(e2 != e); in TEST()
447 exp_int e2 = 20; in TEST() local
448 EXPECT_FALSE(e == e2); in TEST()
449 EXPECT_FALSE(e2 == e); in TEST()
450 EXPECT_TRUE(e != e2); in TEST()
451 EXPECT_TRUE(e2 != e); in TEST()
456 exp_int e2 = unexpected(10); in TEST() local
457 EXPECT_FALSE(e == e2); in TEST()
458 EXPECT_FALSE(e2 == e); in TEST()
459 EXPECT_TRUE(e != e2); in TEST()
460 EXPECT_TRUE(e2 != e); in TEST()
472 exp_int e2 = unexpected(10); in TEST() local
473 EXPECT_TRUE(e == e2); in TEST()
474 EXPECT_TRUE(e2 == e); in TEST()
475 EXPECT_FALSE(e != e2); in TEST()
476 EXPECT_FALSE(e2 != e); in TEST()
488 exp_int e2 = unexpected(20); in TEST() local
489 EXPECT_FALSE(e == e2); in TEST()
490 EXPECT_FALSE(e2 == e); in TEST()
491 EXPECT_TRUE(e != e2); in TEST()
492 EXPECT_TRUE(e2 != e); in TEST()
510 exp_void e2 = unexpected(10); in TEST() local
512 EXPECT_TRUE(e2 == error2); in TEST()
513 EXPECT_TRUE(error2 == e2); in TEST()
514 EXPECT_FALSE(e2 != error2); in TEST()
515 EXPECT_FALSE(error2 != e2); in TEST()
526 exp_void e2 = unexpected(10); in TEST() local
528 EXPECT_FALSE(e2 == error2); in TEST()
529 EXPECT_FALSE(error2 == e2); in TEST()
530 EXPECT_TRUE(e2 != error2); in TEST()
531 EXPECT_TRUE(error2 != e2); in TEST()
536 expected<int32_t, int> e2 = 10; in TEST() local
537 EXPECT_TRUE(e == e2); in TEST()
538 e2 = 20; in TEST()
539 EXPECT_FALSE(e == e2); in TEST()
673 exp_track e2 = e; in TEST() local
795 expected<exp_string, std::string> e2 = unexpected("world"); in TEST() local
796 EXPECT_FALSE(e2.has_value()); in TEST()
797 EXPECT_FALSE(e2.ok()); in TEST()
798 EXPECT_EQ("world", e2.error()); in TEST()
865 exp_ptr e2(unexpected(std::make_unique<int>(4))); in TEST() local
868 EXPECT_FALSE(e2.has_value()); in TEST()
870 EXPECT_EQ(4, *(e2.error())); in TEST()
872 e2 = std::move(e); in TEST()
874 EXPECT_TRUE(e2.has_value()); in TEST()
875 EXPECT_EQ(3, *(e2.value())); in TEST()