Kommentare gelöscht
This commit is contained in:
parent
79a6eb7267
commit
01bc613189
36
test_stack.c
36
test_stack.c
@ -26,15 +26,6 @@ void testeStackBeschreiben()
|
|||||||
TEST_ASSERT_NOT_NULL(topValue);
|
TEST_ASSERT_NOT_NULL(topValue);
|
||||||
TEST_ASSERT_EQUAL_INT(42, *topValue);
|
TEST_ASSERT_EQUAL_INT(42, *topValue);
|
||||||
|
|
||||||
/*if(topValue != NULL && *topValue == 42)
|
|
||||||
{
|
|
||||||
printf("Test 1: Erstes Element erfolgreich gepusht!\n");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("Test 1: FEHLGESCHLAGEN!\n");
|
|
||||||
}*/
|
|
||||||
|
|
||||||
|
|
||||||
int wert2 = 12;
|
int wert2 = 12;
|
||||||
stack = push(stack, &wert2);
|
stack = push(stack, &wert2);
|
||||||
@ -47,15 +38,6 @@ void testeStackBeschreiben()
|
|||||||
TEST_ASSERT_NOT_NULL(secondValue);
|
TEST_ASSERT_NOT_NULL(secondValue);
|
||||||
TEST_ASSERT_EQUAL_INT(42, *secondValue);
|
TEST_ASSERT_EQUAL_INT(42, *secondValue);
|
||||||
|
|
||||||
/*if(topValue != NULL && *topValue == 12 && secondValue != NULL && *secondValue == 42)
|
|
||||||
{
|
|
||||||
printf("Test 2: Zweites Element erfolgreich gepusht!\n");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("Test 2: FEHLGESCHLAGEN!\n");
|
|
||||||
}*/
|
|
||||||
|
|
||||||
|
|
||||||
//printf("=== Ende Test: push() ===\n\n");
|
//printf("=== Ende Test: push() ===\n\n");
|
||||||
return;
|
return;
|
||||||
@ -79,15 +61,6 @@ void testepop()
|
|||||||
TEST_ASSERT_NOT_NULL(topValue);
|
TEST_ASSERT_NOT_NULL(topValue);
|
||||||
TEST_ASSERT_EQUAL_INT(20, *topValue);
|
TEST_ASSERT_EQUAL_INT(20, *topValue);
|
||||||
|
|
||||||
/*if(topValue != NULL && *topValue == 20)
|
|
||||||
{
|
|
||||||
printf("Test: Erstes Element erfolgreich gelöscht!\n");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("Test 1: FEHLGESCHLAGEN!\n");
|
|
||||||
}*/
|
|
||||||
|
|
||||||
//printf("=== Ende Test: pop() ===\n\n");
|
//printf("=== Ende Test: pop() ===\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,15 +80,6 @@ void testetop()
|
|||||||
TEST_ASSERT_NOT_NULL(topValue);
|
TEST_ASSERT_NOT_NULL(topValue);
|
||||||
TEST_ASSERT_EQUAL_INT(74, *topValue);
|
TEST_ASSERT_EQUAL_INT(74, *topValue);
|
||||||
|
|
||||||
/*if(topValue != NULL && *topValue == 74)
|
|
||||||
{
|
|
||||||
printf("Test: top() gibt korrektes Element zurück!\n");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("Test: FEHLGESCHLAGEN!\n");
|
|
||||||
}*/
|
|
||||||
|
|
||||||
//printf("=== Ende Test: top() ===\n\n");
|
//printf("=== Ende Test: top() ===\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user