You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
530 B

// test_wwm.c
#include "unity.h"
#include "wwm.h"
void test_setGeld_1(void) {
// Initialize or reset variables if needed
runde = 0;
geld = 0;
frage = 0;
useranswer = 0;
// Call setGeld and check the initial values
TEST_ASSERT_EQUAL(100, setGeld(1));
TEST_ASSERT_EQUAL(100, geld);
}
void test_setGeld_2(void) {
runde = 0;
TEST_ASSERT_EQUAL(300, setGeld(3));
}
void test_crandomNumber(void){
int result = crandomNumber();
TEST_ASSERT_TRUE(result >= 0 && result <= 9);
}