File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
liquidjava-verifier/src/test/java/liquidjava/api/tests Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,11 @@ else if (shouldFail(pathName)) {
5757 }
5858 LJError error = diagnostics .getErrors ().iterator ().next ();
5959 if (expected .isPresent ()) {
60- String expectedMsg = expected .get ().toLowerCase ();
61- if (!error .getTitle ().toLowerCase ().equals (expectedMsg )) {
62- System .out .println ("Error in: " + pathName + " --- expected error: " + expectedMsg
63- + ", but found: " + error .getTitle ());
60+ String expectedError = expected .get ();
61+ String foundError = error .getTitle ();
62+ if (!foundError .equalsIgnoreCase (expectedError )) {
63+ System .out .println ("Error in: " + pathName + " --- expected error: " + expectedError
64+ + ", but found: " + foundError );
6465 fail ();
6566 }
6667 } else {
You can’t perform that action at this time.
0 commit comments