Skip to content

Commit

Permalink
blaaargh
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed May 30, 2024
1 parent 622f895 commit 4ce8972
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,12 @@ enum Expected {
/**
* Fetch a reader for our input data.
*
* @param inputFile if null, read DEFAULT_FILE from classpath
* @param inputFile read from classpath
* @return BufferedReader
* @throws IOException
*/
private static BufferedReader getInputReader(String inputFile) throws IOException {
if (inputFile != null) {
return FileUtilities.openUTF8Reader(Settings.SRC_UCD_DIR, inputFile);
}

// null: read it from resource data
return FileUtilities.openFile(TestUnicodeInvariants.class, DEFAULT_FILE);
return FileUtilities.openFile(TestUnicodeInvariants.class, inputFile);
}

/**
Expand Down

0 comments on commit 4ce8972

Please sign in to comment.