public static boolean testGetPathOfSmallestLetterContainsFile() { boolean retVal = true; ScrabbleSuggester sgst = new ScrabbleSuggester("get", 10); String smallestFile = sgst.getPathOfSmallestLetterContainsFile(); if (smallestFile.equals("./TestOutput/wordsContaining_g.txt")) { retVal &= true; } else { retVal &= false; System.err.println("Smallest file method *may* be in error, wasn't g"); } return retVal; }
public static void testRunSuggester() { ScrabbleSuggester sgst = new ScrabbleSuggester("get", 10); sgst.runSuggester(); }