diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-04 11:05:07 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-04 11:05:07 +0300 |
commit | ebb80e5da4811166268bd943b67e2875eb1e33e4 (patch) | |
tree | ab5a29152be117be5f03074c43d425d3c8b6765a /test | |
parent | add AppVeyor configuration (diff) | |
download | winapi-utf8-ebb80e5da4811166268bd943b67e2875eb1e33e4.tar.gz winapi-utf8-ebb80e5da4811166268bd943b67e2875eb1e33e4.zip |
clang-format formatting fixes
Diffstat (limited to '')
-rw-r--r-- | test/convert.cpp | 14 | ||||
-rw-r--r-- | test/string.cpp | 2 |
2 files changed, 5 insertions, 11 deletions
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<unsigned char>& cs) { return os; } -} +} // namespace std namespace { @@ -56,24 +56,18 @@ std::vector<std::vector<unsigned char>> utf8 = { from({0xd0, 0x9f, 0xd1, 0x80, 0xd0, 0xb8, 0xd0, 0xb2, 0xd0, 0xb5, 0xd1, 0x82}), }; -} +} // namespace BOOST_TEST_SPECIALIZED_COLLECTION_COMPARE(std::vector<unsigned char>); 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) |