|
|
@ -28,5 +28,16 @@ void test_funktioniertDieAbfrageDerGroesse() { |
|
|
|
int actualResult = frageNachGroesse(); |
|
|
|
//assert |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |
|
|
|
|
|
|
|
void test_korrekteBerechnungDerArrayGroesse() { |
|
|
|
//arrange |
|
|
|
int expectedResult = 200; |
|
|
|
|
|
|
|
//act |
|
|
|
int actualResult = berechnungDerLaengeDesQuadratArrays(10); |
|
|
|
//assert |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |