|
@ -236,9 +236,9 @@ void test_current_at_voltage12_resistance6(void) |
|
|
int expected = 2; |
|
|
int expected = 2; |
|
|
|
|
|
|
|
|
/* act */ |
|
|
/* act */ |
|
|
int v = 12; |
|
|
|
|
|
int r = 6; |
|
|
|
|
|
actual = calculateCurrent(v, r); |
|
|
|
|
|
|
|
|
int voltage = 12; |
|
|
|
|
|
int resistance = 6; |
|
|
|
|
|
actual = calculateCurrent(voltage, resistance); |
|
|
|
|
|
|
|
|
/* assert */ |
|
|
/* assert */ |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|