|
@ -152,4 +152,19 @@ void test_howManyTimes_e_appearsIn_Beere(void) |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_current_at_voltage12_resistance6(void) |
|
|
|
|
|
{ |
|
|
|
|
|
/* arrange */ |
|
|
|
|
|
int actual; |
|
|
|
|
|
int expected = 2; |
|
|
|
|
|
|
|
|
|
|
|
/* act */ |
|
|
|
|
|
int v = 12; |
|
|
|
|
|
int r = 6; |
|
|
|
|
|
actual = i(v, r); |
|
|
|
|
|
|
|
|
|
|
|
/* assert */ |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |