|
|
@ -9,7 +9,7 @@ void tearDown(void){ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void test_doesWelcomeMessageWork(){ |
|
|
|
void test_doesWelcomeMessageWork() { |
|
|
|
//arrange |
|
|
|
int expectedResult = 0; |
|
|
|
|
|
|
@ -17,5 +17,16 @@ void test_doesWelcomeMessageWork(){ |
|
|
|
int actualResult = printWelcomeMessage(); |
|
|
|
//assert |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult,actualResult); |
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |
|
|
|
|
|
|
|
void test_funktioniertDieAbfrageDerGroesse() { |
|
|
|
//arrange |
|
|
|
int expectedResult = 0; |
|
|
|
|
|
|
|
//act |
|
|
|
int actualResult = frageNachGroesse(); |
|
|
|
//assert |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |