Browse Source

Unittest lose( right + freiesFeld)

main
Jannis 2 years ago
parent
commit
2073a370f0
  1. 2
      build/test/results/test_Spiellogik.pass
  2. 2
      build/test/results/test_Umgebung.pass
  3. 2
      build/test/results/test_test.pass
  4. 9
      test/test_Spiellogik.c

2
build/test/results/test_Spiellogik.pass

@ -55,4 +55,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.00140369600012491
:time: 0.001419748999978765

2
build/test/results/test_Umgebung.pass

@ -19,4 +19,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0016821500003061374
:time: 0.0015369510001619346

2
build/test/results/test_test.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0015225039996948908
:time: 0.0011366079997969791

9
test/test_Spiellogik.c

@ -101,4 +101,13 @@ void test_lose_left_linkerRand(void){
int result = lose(realU, 'l'); int result = lose(realU, 'l');
TEST_ASSERT_EQUAL_INT(1, result); TEST_ASSERT_EQUAL_INT(1, result);
}
//Test zur Bewegung nach Rechts
void test_lose_right_freiesFeld(void){
int realU[20][20] = { 0 };
realU[5][12] = 4;
int result = lose(realU, 'r');
TEST_ASSERT_EQUAL_INT(0, result);
} }
Loading…
Cancel
Save