@ -121,6 +121,6 @@ int calculatePressure(int force, int area) {
return force / area;
}
float f(float m) {
return m * 9.81;
float calculateWeight(float mass) {
return mass * 9.81;
@ -58,7 +58,7 @@ int calculateCurrent(int voltage, int resistance);
int calculatePressure(int force, int area);
// berechnet den Druck
float f(float m);
float calculateWeight(float mass);
// berechnet die Gewichtkraft
#endif
@ -265,7 +265,7 @@ void test_weight_at_mass100(void)
/* act */;
float m = 100;
actual = f(m);
actual = calculateWeight(m);
/* assert */
TEST_ASSERT_EQUAL_FLOAT(expected, actual);