generated from freudenreichan/info2Praktikum-DobleSpiel
28 lines
527 B
C
28 lines
527 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <math.h>
|
|
#include "unity.h"
|
|
#include "stack.h"
|
|
|
|
|
|
static void pushVorhandenerStack(){
|
|
StackNode stack = {(int)1,NULL};
|
|
|
|
StackNode *tester = push(&stack,(int)2);
|
|
|
|
TEST_ASSERT_EQUAL_INT(tester->data,2);
|
|
TEST_ASSERT_EQUAL_INT(tester->dannach->data,1);
|
|
}
|
|
|
|
|
|
|
|
int main(){
|
|
UNITY_BEGIN();
|
|
printf("\n============================\nStack tests\n============================\n");
|
|
|
|
RUN_TEST(pushVorhandenerStack);
|
|
|
|
|
|
return UNITY_END();
|
|
} |