diff --git a/test/test_converter.cpp b/test/test_converter.cpp index 5f1dee1..dcea7f6 100644 --- a/test/test_converter.cpp +++ b/test/test_converter.cpp @@ -65,31 +65,31 @@ TEST_CASE("testing valid conversions") { { auto tup = c.convert("5,6.6,junk"); REQUIRE(c.valid()); - CHECK(tup == std::tuple{5, 6.6}); + CHECK(tup == std::make_tuple(5, 6.6)); } { auto tup = c.convert("5,junk,6.6"); REQUIRE(c.valid()); - CHECK(tup == std::tuple{5, 6.6}); + CHECK(tup == std::make_tuple(5, 6.6)); } { auto tup = c.convert("junk;5;6.6", ";"); REQUIRE(c.valid()); - CHECK(tup == std::tuple{5, 6.6}); + CHECK(tup == std::make_tuple(5, 6.6)); } { auto tup = c.convert, double>("junk;5;6.6", ";"); REQUIRE(c.valid()); REQUIRE(std::get<0>(tup).has_value()); - CHECK(tup == std::tuple{5, 6.6}); + CHECK(tup == std::make_tuple(5, 6.6)); } { auto tup = c.convert, double>("junk;5.4;6.6", ";"); REQUIRE(c.valid()); REQUIRE(!std::get<0>(tup).has_value()); - CHECK(tup == std::tuple{std::nullopt, 6.6}); + CHECK(tup == std::make_tuple(std::optional{}, 6.6)); } { auto tup = @@ -97,7 +97,7 @@ TEST_CASE("testing valid conversions") { ";"); REQUIRE(c.valid()); REQUIRE(std::holds_alternative(std::get<0>(tup))); - CHECK(tup == std::tuple{std::variant{5}, 6.6}); + CHECK(tup == std::make_tuple(std::variant{5}, 6.6)); } { auto tup = @@ -105,7 +105,7 @@ TEST_CASE("testing valid conversions") { ";"); REQUIRE(c.valid()); REQUIRE(std::holds_alternative(std::get<0>(tup))); - CHECK(tup == std::tuple{std::variant{5.5}, 6.6}); + CHECK(tup == std::make_tuple(std::variant{5.5}, 6.6)); } } @@ -162,12 +162,12 @@ TEST_CASE("testing ss:ax restriction (all except)") { { std::tuple tup = c.convert>("c,3"); REQUIRE(c.valid()); - CHECK(tup == std::tuple{'c', 3}); + CHECK(tup == std::make_tuple('c', 3)); } { std::tuple tup = c.convert, char>("3,c"); REQUIRE(c.valid()); - CHECK(tup == std::tuple{3, 'c'}); + CHECK(tup == std::make_tuple(3, 'c')); } } @@ -196,12 +196,12 @@ TEST_CASE("testing ss:nx restriction (none except)") { { auto tup = c.convert>("c,junk,1"); REQUIRE(c.valid()); - CHECK(tup == std::tuple{'c', 1}); + CHECK(tup == std::make_tuple('c', 1)); } { auto tup = c.convert, char>("1,c"); REQUIRE(c.valid()); - CHECK(tup == std::tuple{1, 'c'}); + CHECK(tup == std::make_tuple(1, 'c')); } } @@ -230,12 +230,12 @@ TEST_CASE("testing ss:ir restriction (in range)") { { auto tup = c.convert>("c,junk,1"); REQUIRE(c.valid()); - CHECK(tup == std::tuple{'c', 1}); + CHECK(tup == std::make_tuple('c', 1)); } { auto tup = c.convert, char>("1,c"); REQUIRE(c.valid()); - CHECK(tup == std::tuple{1, 'c'}); + CHECK(tup == std::make_tuple(1, 'c')); } } @@ -263,13 +263,13 @@ TEST_CASE("testing ss:oor restriction (out of range)") { { auto tup = c.convert>("c,junk,3"); REQUIRE(c.valid()); - CHECK(tup == std::tuple{'c', 3}); + CHECK(tup == std::make_tuple('c', 3)); } { auto tup = c.convert, char>("3,c"); REQUIRE(c.valid()); - CHECK(tup == std::tuple{3, 'c'}); + CHECK(tup == std::make_tuple(3, 'c')); } } @@ -312,7 +312,7 @@ TEST_CASE("testing ss:ne restriction (not empty)") { { auto tup = c.convert, ss::ne>("1,s"); REQUIRE(c.valid()); - CHECK(tup == std::tuple{1, "s"}); + CHECK(tup == std::make_tuple(1, "s")); } { auto tup = c.convert>>("{1 2 3}");