From ebb80e5da4811166268bd943b67e2875eb1e33e4 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 4 Oct 2020 11:05:07 +0300 Subject: clang-format formatting fixes --- test/convert.cpp | 14 ++++---------- test/string.cpp | 2 +- 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'test') diff --git a/test/convert.cpp b/test/convert.cpp index abd7173..21882c3 100644 --- a/test/convert.cpp +++ b/test/convert.cpp @@ -27,7 +27,7 @@ ostream& operator<<(ostream& os, const vector& cs) { return os; } -} +} // namespace std namespace { @@ -56,24 +56,18 @@ std::vector> utf8 = { from({0xd0, 0x9f, 0xd1, 0x80, 0xd0, 0xb8, 0xd0, 0xb2, 0xd0, 0xb5, 0xd1, 0x82}), }; -} +} // namespace BOOST_TEST_SPECIALIZED_COLLECTION_COMPARE(std::vector); BOOST_AUTO_TEST_SUITE(convert_tests) -BOOST_DATA_TEST_CASE(test_narrow, - boost::unit_test::data::make(utf16) ^ utf8, - input, - expected) { +BOOST_DATA_TEST_CASE(test_narrow, boost::unit_test::data::make(utf16) ^ utf8, input, expected) { auto actual = from(winapi::narrow(input)); BOOST_TEST(actual == expected, "Expected: " << expected << ", actual: " << actual); } -BOOST_DATA_TEST_CASE(test_widen, - boost::unit_test::data::make(utf8) ^ utf16, - input, - expected) { +BOOST_DATA_TEST_CASE(test_widen, boost::unit_test::data::make(utf8) ^ utf16, input, expected) { auto actual = from(winapi::widen(input)); BOOST_TEST(actual == expected, "Expected: " << expected << ", actual: " << actual); } diff --git a/test/string.cpp b/test/string.cpp index d5e7b3e..010a86f 100644 --- a/test/string.cpp +++ b/test/string.cpp @@ -28,7 +28,7 @@ std::wstring convert(const wchar_t* src) { return std::wstring{src}; } -} +} // namespace BOOST_AUTO_TEST_SUITE(string_tests) -- cgit v1.2.3