@ -86,3 +86,7 @@ int characterAppearanceInString(char c, char string[]) {
int i(int v, int r) {
return v / r;
}
int p(int f, int a) {
return f / a;
@ -167,4 +167,19 @@ void test_current_at_voltage12_resistance6(void)
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 */
#endif