Skip to content

Commit

Permalink
testing to reflect new code
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Fierro committed May 2, 2024
1 parent 734828d commit aeb89a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/uta/cse3310/GameLogicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static org.junit.Assert.*;


import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
Expand Down Expand Up @@ -32,11 +33,11 @@ public void setUp() {
mockBroadcast = new MockBroadcast();
gameLogic = new GameLogic(players, mockBroadcast);
gameLogic.validWords.add("word");
gameLogic.setValidWords(Arrays.asList("word", "test", "example"));
}

@Test
public void testIsValidWord() {
// Assuming isValidWord checks something about the first player
assertTrue(gameLogic.isValidWord("word"));
assertFalse(gameLogic.isValidWord("nonexistent"));
}
Expand Down

0 comments on commit aeb89a6

Please sign in to comment.