Browse Source

Merge branch 'Battleship_game' into 'main'

Main Merge

See merge request pmuw_projekt/pmuw_projekt_notebinder!40
remotes/origin/Saba
fdai7729 11 months ago
parent
commit
b9e9aacbb6
  1. 1392
      src/main/c/Template/Battleship_game.c
  2. 6
      src/main/c/Template/battleship_game.h
  3. 43
      test/test_battleship.c

1392
src/main/c/Template/Battleship_game.c
File diff suppressed because it is too large
View File

6
src/main/c/Template/battleship_game.h

@ -0,0 +1,6 @@
#ifndef BATTLESHIP_GAME.H
#define BATTLESHIP_GAME.H
int battleship();
#endif

43
test/test_battleship.c

@ -0,0 +1,43 @@
#ifdef TEST
#include "unity.h"
#include "battleship_game.h"
void setUp(void){
}
void tearDown(void){
}
void test_convertcoor(void) {
int output;
output = convertcoor('b', 5);
TEST_ASSERT_EQUAL_INT(14, output);
}
void setUp(void){
}
void tearDown(void){
}
void test_convertcoor(void) {
int output;
output = convertcoor('F', 6);
TEST_ASSERT_EQUAL_INT(55, output);
}
#endif
Loading…
Cancel
Save