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.

34 lines
540 B

// test_wwm.c
#include "unity.h"
#include "wwm.h"
void setUp(void) {
// set up any initializations if needed
}
void tearDown(void) {
// clean up after the test if needed
}
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));
}