clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I59c0a8c4b89131ecd3e9a841ed37ef3b8dcf8e9d
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/tests/test_sensorcommands.cpp b/tests/test_sensorcommands.cpp
index b10bf3b..757ea51 100644
--- a/tests/test_sensorcommands.cpp
+++ b/tests/test_sensorcommands.cpp
@@ -66,8 +66,8 @@
if (bSigned)
{
int8_t expect = x;
- int8_t actual =
- ipmi::scaleIPMIValueFromDouble(y, M, rExp, B, bExp, bSigned);
+ int8_t actual = ipmi::scaleIPMIValueFromDouble(y, M, rExp, B, bExp,
+ bSigned);
result = actual;
yRoundtrip = ipmitool_y_from_x(actual, M, rExp, B, bExp, bSigned);
@@ -77,8 +77,8 @@
else
{
uint8_t expect = x;
- uint8_t actual =
- ipmi::scaleIPMIValueFromDouble(y, M, rExp, B, bExp, bSigned);
+ uint8_t actual = ipmi::scaleIPMIValueFromDouble(y, M, rExp, B, bExp,
+ bSigned);
result = actual;
yRoundtrip = ipmitool_y_from_x(actual, M, rExp, B, bExp, bSigned);
@@ -429,8 +429,8 @@
EXPECT_EQ(bExp, -1);
}
- scaledVal =
- ipmi::scaleIPMIValueFromDouble(5, mValue, rExp, bValue, bExp, bSigned);
+ scaledVal = ipmi::scaleIPMIValueFromDouble(5, mValue, rExp, bValue, bExp,
+ bSigned);
expected = 5 / (mValue * std::pow(10, rExp));
EXPECT_NEAR(scaledVal, expected, expected * 0.01);