@ -113,8 +113,8 @@ int characterAppearanceInString(char c, char string[]) {
return appear;
}
int i(int v, int r) {
return v / r;
int calculateCurrent(int voltage, int resistance) {
return voltage / resistance;
int p(int f, int a) {
@ -52,7 +52,7 @@ int stringCharacterCounter(char string[]);
int characterAppearanceInString(char c, char string[]);
// liefert die Anzahl an einem bestimmten Character in einem String zurueck
int i(int v, int r);
int calculateCurrent(int voltage, int resistance);
// berechnet den Strom mithilfe ohmsches Gesetzes
int p(int f, int a);
@ -236,7 +236,7 @@ void test_current_at_voltage12_resistance6(void)
/* act */
int v = 12;
int r = 6;
actual = i(v, r);
actual = calculateCurrent(v, r);
/* assert */
TEST_ASSERT_EQUAL_INT(expected, actual);