@ -81,4 +81,8 @@ int characterAppearanceInString(char c, char string[]) {
}
return appear;
int i(int v, int r) {
return v / r;
@ -152,4 +152,19 @@ void test_howManyTimes_e_appearsIn_Beere(void)
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 */
#endif