From e8067d872d897720f4f7da6c9340695dd29e2592 Mon Sep 17 00:00:00 2001 From: Justin C <73019026+neoFuzz@users.noreply.github.com> Date: Wed, 11 Dec 2024 04:24:20 +1100 Subject: [PATCH] Removed unused variable. Some documentation fixes. (#6675) --- .../java/forge/ai/simulation/GameSimulationTest.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/forge-gui-desktop/src/test/java/forge/ai/simulation/GameSimulationTest.java b/forge-gui-desktop/src/test/java/forge/ai/simulation/GameSimulationTest.java index 5a64aad7389..d5cb4cac1d3 100644 --- a/forge-gui-desktop/src/test/java/forge/ai/simulation/GameSimulationTest.java +++ b/forge-gui-desktop/src/test/java/forge/ai/simulation/GameSimulationTest.java @@ -2551,12 +2551,13 @@ public class GameSimulationTest extends SimulationTest { } /** - * blah + * Test for "Volo's Journal" usage by the AI. This test checks if the AI correctly + * adds the correct types to the "Volo's Journal" when casting the spells in order + * and makes sure the entries are unique. */ @Test public void testVoloJournal() { Game game = initAndCreateGame(); - Player p0 = game.getPlayers().get(0); Player p = game.getPlayers().get(1); addCards("Island", 7, p); @@ -2600,6 +2601,13 @@ public class GameSimulationTest extends SimulationTest { } } + /** + * Helper method to check if all words in the given list are present in the iterable and unique. + * + * @param words The list of words to check for. + * @param iterable The iterable to check against. + * @return true if all words are present in the iterable, false otherwise. + */ protected boolean areWordsInIterable(List words, Iterable iterable) { // Create a frequency map for the words in the iterable Map frequencyMap = new HashMap<>();