Skip to content

Commit

Permalink
testSaneUsedFiles: check getCurrentFile is the first file in the getU…
Browse files Browse the repository at this point in the history
…sedFiles list
  • Loading branch information
sbesson committed Nov 2, 2024
1 parent df36e69 commit 35fdbb3
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1866,10 +1866,12 @@ public void testSaneUsedFiles() {
msg = "Used files list contains duplicates";
}

if (base.length == 1) {
if (!base[0].equals(file)) success = false;
if (!base[0].equals(file)) {
success = false;
msg = "Used files does not start with getCurrentFile";
}
else if (success) {

if (success) {
Arrays.sort(base);
IFormatReader r =
/*config.noStitching() ? new ImageReader() :*/ new ImageReader();
Expand Down

0 comments on commit 35fdbb3

Please sign in to comment.