From f84f237af769193c83aec8e8bbc3ebedc154ad73 Mon Sep 17 00:00:00 2001 From: jeffro256 Date: Tue, 24 Dec 2024 13:55:18 -0600 Subject: [PATCH] unit_tests: fix variant tests after 'optional' name split --- tests/unit_tests/variant.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit_tests/variant.cpp b/tests/unit_tests/variant.cpp index 3c82ebd50..634558a12 100644 --- a/tests/unit_tests/variant.cpp +++ b/tests/unit_tests/variant.cpp @@ -404,7 +404,7 @@ TEST(variant, visit_lambda) return std::to_string(x); }; - variant v; + optional_variant v; EXPECT_THROW(v.visit(stringify_lambda), std::runtime_error); v = "Rev"; @@ -434,7 +434,7 @@ TEST(variant, visit_ref_passthru) const int& operator()(const B &b) const { return b.x; } }; - tools::variant v; + optional_variant v; EXPECT_THROW(v.visit(x_ref_visitor{}), std::runtime_error); // 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) //------------------------------------------------------------------------------------------------------------------- TEST(variant, value_initialize_to_type_index) { - variant v; + optional_variant v; for (int i = 0; i < 6; ++i) { v.value_initialize_to_type_index(i);