From c710bfa10ca436465cdcc8d2c9a8fe1ffb8b5fed Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Wed, 13 Mar 2024 13:40:03 +0500 Subject: [PATCH] Apply clang-format Signed-off-by: Vladislav Shchapov --- test/std-test.cc | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/test/std-test.cc b/test/std-test.cc index 52053234..b3f62d5c 100644 --- a/test/std-test.cc +++ b/test/std-test.cc @@ -111,19 +111,27 @@ TEST(std_test, optional) { TEST(std_test, expected) { #ifdef __cpp_lib_expected EXPECT_EQ(fmt::format("{}", std::expected{1}), "expected(1)"); - EXPECT_EQ(fmt::format("{}", std::expected{std::unexpected(1)}), "unexpected(1)"); - EXPECT_EQ(fmt::format("{}", std::expected{"test"}), "expected(\"test\")"); - EXPECT_EQ(fmt::format("{}", std::expected{std::unexpected("test")}), "unexpected(\"test\")"); + EXPECT_EQ(fmt::format("{}", std::expected{std::unexpected(1)}), + "unexpected(1)"); + EXPECT_EQ(fmt::format("{}", std::expected{"test"}), + "expected(\"test\")"); + EXPECT_EQ(fmt::format( + "{}", std::expected{std::unexpected("test")}), + "unexpected(\"test\")"); EXPECT_EQ(fmt::format("{}", std::expected{'a'}), "expected('a')"); - EXPECT_EQ(fmt::format("{}", std::expected{std::unexpected('a')}), "unexpected('a')"); + EXPECT_EQ(fmt::format("{}", std::expected{std::unexpected('a')}), + "unexpected('a')"); struct unformattable1 {}; struct unformattable2 {}; EXPECT_FALSE((fmt::is_formattable::value)); EXPECT_FALSE((fmt::is_formattable::value)); - EXPECT_FALSE((fmt::is_formattable>::value)); - EXPECT_FALSE((fmt::is_formattable>::value)); - EXPECT_FALSE((fmt::is_formattable>::value)); + EXPECT_FALSE((fmt::is_formattable< + std::expected>::value)); + EXPECT_FALSE( + (fmt::is_formattable>::value)); + EXPECT_FALSE( + (fmt::is_formattable>::value)); EXPECT_TRUE((fmt::is_formattable>::value)); #endif }