-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b775719
commit bcec097
Showing
6 changed files
with
118 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class GameSystemTest { | ||
|
||
|
||
@Test | ||
void userInputTest() | ||
{ | ||
|
||
} | ||
|
||
@Test | ||
void playGameTest() | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import java.io.IOException; | ||
|
||
public class MapTest { | ||
|
||
|
||
Map map =new Map("map1.txt",new Player()); | ||
|
||
public MapTest() throws IOException { | ||
} | ||
|
||
|
||
@Test | ||
void readMapTest() throws IOException { | ||
char[][] vect =map.readMap("maps/map1.txt") ; | ||
int nbLine = vect.length; | ||
int nbColonne = vect[0].length; | ||
|
||
for (int i = 0; i < nbLine; i++) { | ||
Assertions.assertEquals('#', vect[i][0]); | ||
Assertions.assertEquals('#', vect[i][nbColonne-1]); | ||
Assertions.assertEquals('#', vect[0][i]); | ||
Assertions.assertEquals('#', vect[nbLine-1][i]); | ||
} | ||
} | ||
|
||
@Test | ||
void setPositionTest () | ||
{ | ||
|
||
} | ||
@Test | ||
void movePlayerTest() | ||
{ | ||
|
||
} | ||
@Test | ||
void tryMovePlayerTest() | ||
{ | ||
|
||
} | ||
@Test | ||
void getTileTest() | ||
{ | ||
|
||
} | ||
|
||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class PlayerTest { | ||
|
||
|
||
|
||
@Test | ||
void setPositionTest(int x , int y ) | ||
{} | ||
|
||
} |