Browse Source

test_test_Mathe_plus

remotes/origin/Yasin
fdai7731 11 months ago
parent
commit
f8edfa0655
  1. 3
      .gitignore
  2. 2
      src/main/c/Mathe.c
  3. BIN
      src/main/c/a.exe
  4. 20
      src/test/c/test_Mathe.c
  5. 0
      src/test/c/test_test.c

3
.gitignore

@ -1 +1,2 @@
target/**
target/**
src/test/c/test_test.c

2
src/main/c/Mathe.c

@ -187,4 +187,4 @@ int mainx() {
printf("Vielen Dank fürs Spielen! Auf Wiedersehen.\n");
return 0;
}
}

BIN
src/main/c/a.exe

20
src/test/c/test_Mathe.c

@ -0,0 +1,20 @@
#ifdef TEST
#include "unity.h"
#include "Mathe.h"
void setUp(void)
{
}
void tearDown(void)
{
}
void test_Mathe_plus(void)
{
int a=berechneErgebnis(1,2,'+');
/* assert */
TEST_ASSERT_EQUAL_INT(a,3);
}
#endif

0
src/test/c/test_test.c

Loading…
Cancel
Save