From e440d7a79bf5fde68135542b8ba199fa4ae6f218 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Wed, 3 Jul 2019 01:01:07 -0400 Subject: [PATCH] some utility changes because of the way variants are checked now... --- tests/runtime_tests/source/utility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/runtime_tests/source/utility.cpp b/tests/runtime_tests/source/utility.cpp index 8c69ba96..0abb899e 100644 --- a/tests/runtime_tests/source/utility.cpp +++ b/tests/runtime_tests/source/utility.cpp @@ -71,11 +71,11 @@ TEST_CASE("utility/variant", "test that variant can be round-tripped") { lua.set_function("f", [](int v) { return v == 2; }); - lua.set_function("g", [](std::variant vv) { + lua.set_function("g", [](std::variant vv) { int v = std::get(vv); return v == 2; }); - lua["v"] = std::variant(2); + lua["v"] = std::variant(2); { auto result = lua.safe_script("assert(f(v))", sol::script_pass_on_error); REQUIRE(result.valid());