Skip to content

Commit f84f237

Browse files
committed
unit_tests: fix variant tests after 'optional' name split
1 parent 941ecef commit f84f237

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit_tests/variant.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ TEST(variant, visit_lambda)
404404
return std::to_string(x);
405405
};
406406

407-
variant<int8_t, uint8_t, int16_t, uint16_t, std::string> v;
407+
optional_variant<int8_t, uint8_t, int16_t, uint16_t, std::string> v;
408408
EXPECT_THROW(v.visit(stringify_lambda), std::runtime_error);
409409

410410
v = "Rev";
@@ -434,7 +434,7 @@ TEST(variant, visit_ref_passthru)
434434
const int& operator()(const B &b) const { return b.x; }
435435
};
436436

437-
tools::variant<A, B> v;
437+
optional_variant<A, B> v;
438438
EXPECT_THROW(v.visit(x_ref_visitor{}), std::runtime_error);
439439

440440
// A very hairy looking test, but we're just testing that the reference returned from our static
@@ -449,7 +449,7 @@ TEST(variant, visit_ref_passthru)
449449
//-------------------------------------------------------------------------------------------------------------------
450450
TEST(variant, value_initialize_to_type_index)
451451
{
452-
variant<int8_t, uint8_t, int16_t, uint16_t, std::string> v;
452+
optional_variant<int8_t, uint8_t, int16_t, uint16_t, std::string> v;
453453
for (int i = 0; i < 6; ++i)
454454
{
455455
v.value_initialize_to_type_index(i);

0 commit comments

Comments
 (0)