Files
TopTeamBedrijfssimulaties-S…/tests/StartersTest.cpp
Sander Speetjens bfdee33a56 Add target compile options
-Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion
2022-11-13 18:17:07 +01:00

18 lines
606 B
C++

#include "StartersTest.hpp"
// TEST(TestCaseName, IndividualTestName)
TEST(StartersTest, calculateStandard)
{
Starters_c test1(Starters_c::MachineStandard::Standard, 3, 2000, 2000, 2000, 40, 40, 6000, 45000);
EXPECT_DOUBLE_EQ(-31150.0L, test1.calculate());
}
TEST(StartersTest, calculateLuxe)
{
Starters_c test1(Starters_c::MachineStandard::Luxe, 1000, 1000, 105, 25, 9000, 25000);
Starters_c test2(Starters_c::MachineStandard::Luxe, 1000, 1000, 1000, 105, 25, 9000, 25000);
EXPECT_DOUBLE_EQ(75500.0l, test1.calculate());
EXPECT_DOUBLE_EQ(76337.5l, test2.calculate());
}