From 25a4e4fb48c5a531b888f0b136ad3c6978578218 Mon Sep 17 00:00:00 2001 From: Jason Peters Date: Wed, 31 Jan 2024 14:01:02 +0100 Subject: [PATCH] =?UTF-8?q?Test=20ob=20korrekt=20bef=C3=BCllt=20wird?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/c/Jason/test_ASCII_art.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/test/c/Jason/test_ASCII_art.c b/src/test/c/Jason/test_ASCII_art.c index 3402698..5edde35 100644 --- a/src/test/c/Jason/test_ASCII_art.c +++ b/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); } \ No newline at end of file