Browse Source

unittest 1: Erster Test compile

remotes/origin/Christian
Christian Reum 11 months ago
parent
commit
d252b26bce
  1. 29
      test/test_wwm.c

29
test/test_wwm.c

@ -0,0 +1,29 @@
// 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_and_wwm(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(0, setGeld(0));
TEST_ASSERT_EQUAL(0, geld);
// Call wwm and check if it runs without errors
//wwm();
}
Loading…
Cancel
Save