Skip to content

Commit

Permalink
blarg
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed May 30, 2024
1 parent 39301fe commit 622f895
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ private static BufferedReader getInputReader(String inputFile) throws IOExceptio
* @throws IOException
*/
public static int testInvariants(String inputFile, boolean doRange) throws IOException {
if (inputFile == null) {
inputFile = DEFAULT_FILE;
}
TestUnicodeInvariants.doRange = doRange;
parseErrorCount = 0;
testFailureCount = 0;
Expand All @@ -152,7 +155,9 @@ public static int testInvariants(String inputFile, boolean doRange) throws IOExc
FileUtilities.openUTF8Writer(
Settings.Output.GEN_DIR,
"UnicodeTestResults"
+ (inputFile == null ? "" : "-" + inputFile.split("\\.")[0])
+ (inputFile.equals(DEFAULT_FILE)
? ""
: "-" + inputFile.split("\\.")[0])
+ "."
+ (doHtml ? "html" : "txt"))) {
final StringWriter writer = new StringWriter();
Expand Down

0 comments on commit 622f895

Please sign in to comment.