Browse Source

refactoring: Testvariablen verbessert

remotes/origin/habib
Habib 11 months ago
parent
commit
ce8e022876
  1. 6
      src/test/test_funktionen.c

6
src/test/test_funktionen.c

@ -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);

Loading…
Cancel
Save