Skip to content

Commit de08a0a

Browse files
committed
Apply clang-format
Signed-off-by: Vladislav Shchapov <[email protected]>
1 parent 212266e commit de08a0a

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

test/std-test.cc

+15-7
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,27 @@ TEST(std_test, optional) {
111111
TEST(std_test, expected) {
112112
#ifdef __cpp_lib_expected
113113
EXPECT_EQ(fmt::format("{}", std::expected<int, int>{1}), "expected(1)");
114-
EXPECT_EQ(fmt::format("{}", std::expected<int, int>{std::unexpected(1)}), "unexpected(1)");
115-
EXPECT_EQ(fmt::format("{}", std::expected<std::string, int>{"test"}), "expected(\"test\")");
116-
EXPECT_EQ(fmt::format("{}", std::expected<int, std::string>{std::unexpected("test")}), "unexpected(\"test\")");
114+
EXPECT_EQ(fmt::format("{}", std::expected<int, int>{std::unexpected(1)}),
115+
"unexpected(1)");
116+
EXPECT_EQ(fmt::format("{}", std::expected<std::string, int>{"test"}),
117+
"expected(\"test\")");
118+
EXPECT_EQ(fmt::format(
119+
"{}", std::expected<int, std::string>{std::unexpected("test")}),
120+
"unexpected(\"test\")");
117121
EXPECT_EQ(fmt::format("{}", std::expected<char, int>{'a'}), "expected('a')");
118-
EXPECT_EQ(fmt::format("{}", std::expected<int, char>{std::unexpected('a')}), "unexpected('a')");
122+
EXPECT_EQ(fmt::format("{}", std::expected<int, char>{std::unexpected('a')}),
123+
"unexpected('a')");
119124

120125
struct unformattable1 {};
121126
struct unformattable2 {};
122127
EXPECT_FALSE((fmt::is_formattable<unformattable1>::value));
123128
EXPECT_FALSE((fmt::is_formattable<unformattable2>::value));
124-
EXPECT_FALSE((fmt::is_formattable<std::expected<unformattable1, unformattable2>>::value));
125-
EXPECT_FALSE((fmt::is_formattable<std::expected<unformattable1, int>>::value));
126-
EXPECT_FALSE((fmt::is_formattable<std::expected<int, unformattable2>>::value));
129+
EXPECT_FALSE((fmt::is_formattable<
130+
std::expected<unformattable1, unformattable2>>::value));
131+
EXPECT_FALSE(
132+
(fmt::is_formattable<std::expected<unformattable1, int>>::value));
133+
EXPECT_FALSE(
134+
(fmt::is_formattable<std::expected<int, unformattable2>>::value));
127135
EXPECT_TRUE((fmt::is_formattable<std::expected<int, int>>::value));
128136
#endif
129137
}

0 commit comments

Comments
 (0)