Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LawrenceStanton committed Nov 26, 2023
1 parent 5f54bf7 commit 1f3a85f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Test/SM72445_Config.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ TEST_F(SM72445_Config, getConfigReturnsExpectedConfig) {
// Unused bbReset
false, // Don't care
false, // Don't care
}}};
}}
};

for (const auto &[testReg3Value, expected] : testValues) {
EXPECT_CALL(i2c, read).WillOnce(Return(testReg3Value));
Expand Down
6 changes: 4 additions & 2 deletions Test/SM72445_X.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ TEST(SM72445_X_GainTest, getGainNormallyReturnsCorrespondingGainValue) {
vInGain,
vOutGain,
iInGain,
iOutGain};
iOutGain
};

EXPECT_FLOAT_EQ(sm72445Gain.getGain(ElectricalProperty::VOLTAGE_IN), vInGain);
EXPECT_FLOAT_EQ(sm72445Gain.getGain(ElectricalProperty::VOLTAGE_OUT), vOutGain);
Expand All @@ -69,7 +70,8 @@ TEST(SM72445_X_GainTest, getGainReturnsZeroIfGivenPropertyInvalid) {
1.0f,
1.0f,
1.0f,
1.0f};
1.0f
};
EXPECT_EQ(sm72445Gain.getGain(static_cast<ElectricalProperty>(0xFFu)), 0.0f);
EXPECT_EQ(sm72445Gain.getGain(static_cast<CurrentThreshold>(0xAAu)), 0.0f);
}

0 comments on commit 1f3a85f

Please sign in to comment.