Skip to content

Commit

Permalink
trying to fix fail tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenil committed Apr 23, 2024
1 parent 558e7e4 commit 670a686
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/uta/cse3310/GameTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package uta.cse3310;
import junit.framework.TestCase;

import java.util.Arrays;

public class GameTest extends TestCase {
private Game game;
Expand All @@ -23,7 +23,7 @@ public void testMatrixInitialization() {
public void testWordPlacement() {

game.placeWords();
assertTrue("at least one word to be placed", game.getNumofWords() > 0);
assertTrue("Expected at least one word to be placed", game.getNumofWords() > 0);
}

public void testFillRandom() {
Expand All @@ -43,7 +43,7 @@ public void testFillRandom() {

public void testCheckAnswer() {

assertTrue("Word should be found at this cordinat", game.check_ans(0, 0, 0, 3));
assertFalse("No word should match these cordinat", game.check_ans(0, 0, 5, 5));
assertTrue("Word should be found at the specified coordinates", game.check_ans(0, 0, 0, 3));
assertFalse("No word should match these coordinates", game.check_ans(0, 0, 5, 5));
}
}

0 comments on commit 670a686

Please sign in to comment.