|
@ -167,4 +167,19 @@ void test_current_at_voltage12_resistance6(void) |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_pressure_at_force360_area12(void) |
|
|
|
|
|
{ |
|
|
|
|
|
/* arrange */ |
|
|
|
|
|
int actual; |
|
|
|
|
|
int expected = 30; |
|
|
|
|
|
|
|
|
|
|
|
/* act */ |
|
|
|
|
|
int f = 360; |
|
|
|
|
|
int a = 12; |
|
|
|
|
|
actual = p(f, a); |
|
|
|
|
|
|
|
|
|
|
|
/* assert */ |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |