From 852481d233fdbd7c1f1d99d1fd092a2bac54376f Mon Sep 17 00:00:00 2001 From: ado Date: Tue, 27 Feb 2024 02:49:50 +0100 Subject: [PATCH] Fix converter unit tests --- test/test_converter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_converter.cpp b/test/test_converter.cpp index 29312b7..659e78f 100644 --- a/test/test_converter.cpp +++ b/test/test_converter.cpp @@ -119,7 +119,7 @@ TEST_CASE_TEMPLATE("converter test valid conversions", T, int, ss::uint8) { c.convert, double>("junk;5;6.6", ";"); REQUIRE(c.valid()); REQUIRE(std::holds_alternative(std::get<0>(tup))); - CHECK_EQ(tup, std::make_tuple(std::variant{5}, 6.6)); + CHECK_EQ(tup, std::make_tuple(std::variant{T(5)}, 6.6)); } { auto tup = @@ -248,7 +248,7 @@ TEST_CASE_TEMPLATE("converter test valid conversions with exceptions", T, int, c.convert, double>("junk;5;6.6", ";"); REQUIRE(c.valid()); REQUIRE(std::holds_alternative(std::get<0>(tup))); - CHECK_EQ(tup, std::make_tuple(std::variant{5}, 6.6)); + CHECK_EQ(tup, std::make_tuple(std::variant{T(5)}, 6.6)); } catch (ss::exception& e) { FAIL(std::string{e.what()}); }