Skip to content

Commit dfdfd7d

Browse files
committed
Clang-format 15.0.7 is finicky, and does not like these old school array inits
1 parent 638d8fd commit dfdfd7d

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

plugins/experimental/slice/unit-tests/test_config.cc

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,9 @@ TEST_CASE("config default", "[AWS][slice][utility]")
3737

3838
TEST_CASE("config bytesfrom valid parsing", "[AWS][slice][utility]")
3939
{
40-
static std::array<std::string, 6> const teststrings = {{
41-
"1000",
42-
"1m",
43-
"5g",
44-
"2k",
45-
"3kb",
46-
"1z",
47-
}};
40+
static std::array<std::string, 6> const teststrings = {
41+
"1000", "1m", "5g", "2k", "3kb", "1z",
42+
};
4843

4944
constexpr std::array<int64_t, 6> const expvals = {{
5045
1000,
@@ -69,13 +64,13 @@ TEST_CASE("config bytesfrom valid parsing", "[AWS][slice][utility]")
6964

7065
TEST_CASE("config bytesfrom invalid parsing", "[AWS][slice][utility]")
7166
{
72-
static std::array<std::string, 5> const badstrings = {{
67+
static std::array<std::string, 5> const badstrings = {
7368
"abc", // alpha
7469
"g00", // giga
7570
"M00", // mega
7671
"k00", // kilo
7772
"-500", // negative
78-
}};
73+
};
7974

8075
for (std::string const &badstr : badstrings) {
8176
int64_t const val = Config::bytesFrom(badstr.c_str());

0 commit comments

Comments
 (0)