|
|
@ -114,5 +114,16 @@ void test_korrekteBerechnungAufMaximaleGroesseDesDreieck() { |
|
|
|
int actualResult = berechnungDerDreieckArraygroesse(10); |
|
|
|
//assert |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |
|
|
|
|
|
|
|
void test_korrekteBerechnungAufMaximaleGroesseDesDreiecksBeiGrossenZahlen() { |
|
|
|
//arrange |
|
|
|
int expectedResult = 50015000; |
|
|
|
|
|
|
|
//act |
|
|
|
int actualResult = berechnungDerDreieckArraygroesse(10000); |
|
|
|
//assert |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |