This commit is contained in:
Matthew Kennedy 2023-11-22 19:30:09 -08:00
parent f2aef8fa06
commit 55c25a504c
1 changed files with 4 additions and 6 deletions

View File

@ -15,18 +15,16 @@ TEST(HeaterStateOutput, Preheat)
MockHeater dut; MockHeater dut;
// Shouldn't depend upon sensor ESR // Shouldn't depend upon sensor ESR
EXPECT_EQ(1.5f, dut.GetVoltageForState(HeaterState::Preheat, 0)); EXPECT_EQ(2.0f, dut.GetVoltageForState(HeaterState::Preheat, 0));
EXPECT_EQ(1.5f, dut.GetVoltageForState(HeaterState::Preheat, 300)); EXPECT_EQ(2.0f, dut.GetVoltageForState(HeaterState::Preheat, 300));
EXPECT_EQ(1.5f, dut.GetVoltageForState(HeaterState::Preheat, 1000)); EXPECT_EQ(2.0f, dut.GetVoltageForState(HeaterState::Preheat, 1000));
} }
TEST(HeaterStateOutput, WarmupRamp) TEST(HeaterStateOutput, WarmupRamp)
{ {
MockHeater dut; MockHeater dut;
EXPECT_EQ(1.5f, dut.GetVoltageForState(HeaterState::Preheat, 0)); // TODO
EXPECT_EQ(1.5f, dut.GetVoltageForState(HeaterState::Preheat, 300));
EXPECT_EQ(1.5f, dut.GetVoltageForState(HeaterState::Preheat, 1000));
} }
TEST(HeaterStateOutput, ClosedLoop) TEST(HeaterStateOutput, ClosedLoop)