Browse Source

Test ob korrekt befüllt wird

remotes/origin/jason
Jason Peters 1 year ago
parent
commit
25a4e4fb48
  1. 13
      src/test/c/Jason/test_ASCII_art.c

13
src/test/c/Jason/test_ASCII_art.c

@ -40,4 +40,17 @@ void test_korrekteBerechnungDerArrayGroesse() {
//assert
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult);
}
void test_stringAbgleich(void){
// arrange
char expectedMessage[] = "XXXXXXX";
// act
char message[9];
befuellenDesArraysMitX(message, 8);
// assert
TEST_ASSERT_EQUAL_STRING(expectedMessage, message);
}
Loading…
Cancel
Save