mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-29 01:50:43 +00:00
chore: Set ColumnLimit to 120 in clang-format (#6288)
This change updates the ColumnLimit from 80 to 120, and applies clang-format to reformat the code.
This commit is contained in:
@@ -23,13 +23,9 @@ struct join_test : beast::unit_test::suite
|
||||
};
|
||||
|
||||
// C++ array
|
||||
test(
|
||||
CollectionAndDelimiter(std::array<int, 4>{2, -1, 5, 10}, "/"),
|
||||
"2/-1/5/10");
|
||||
test(CollectionAndDelimiter(std::array<int, 4>{2, -1, 5, 10}, "/"), "2/-1/5/10");
|
||||
// One item C++ array edge case
|
||||
test(
|
||||
CollectionAndDelimiter(std::array<std::string, 1>{"test"}, " & "),
|
||||
"test");
|
||||
test(CollectionAndDelimiter(std::array<std::string, 1>{"test"}, " & "), "test");
|
||||
// Empty C++ array edge case
|
||||
test(CollectionAndDelimiter(std::array<int, 0>{}, ","), "");
|
||||
{
|
||||
@@ -48,20 +44,13 @@ struct join_test : beast::unit_test::suite
|
||||
test(CollectionAndDelimiter(words, "\n"), "thing");
|
||||
}
|
||||
// Initializer list
|
||||
test(
|
||||
CollectionAndDelimiter(std::initializer_list<size_t>{19, 25}, "+"),
|
||||
"19+25");
|
||||
test(CollectionAndDelimiter(std::initializer_list<size_t>{19, 25}, "+"), "19+25");
|
||||
// vector
|
||||
test(
|
||||
CollectionAndDelimiter(std::vector<int>{0, 42}, std::to_string(99)),
|
||||
"09942");
|
||||
test(CollectionAndDelimiter(std::vector<int>{0, 42}, std::to_string(99)), "09942");
|
||||
{
|
||||
// vector with one item edge case
|
||||
using namespace jtx;
|
||||
test(
|
||||
CollectionAndDelimiter(
|
||||
std::vector<Account>{Account::master}, "xxx"),
|
||||
Account::master.human());
|
||||
test(CollectionAndDelimiter(std::vector<Account>{Account::master}, "xxx"), Account::master.human());
|
||||
}
|
||||
// empty vector edge case
|
||||
test(CollectionAndDelimiter(std::vector<uint256>{}, ","), "");
|
||||
|
||||
Reference in New Issue
Block a user