Skip to content

Commit

Permalink
Merge pull request #4172 from sbesson/getcurrentfile_getusedfiles
Browse files Browse the repository at this point in the history
testSaneUsedFiles: check getCurrentFile is the first file in the getUsedFiles list
  • Loading branch information
melissalinkert authored Nov 4, 2024
2 parents e32024e + 0fc32a5 commit 808ffe5
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions components/test-suite/src/loci/tests/testng/FormatReaderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1866,10 +1866,22 @@ public void testSaneUsedFiles() {
msg = "Used files list contains duplicates";
}

if (base.length == 1) {
if (!base[0].equals(file)) success = false;
if (!(reader.getFormat().equals("Bio-Rad PIC")) &&
!(reader.getFormat().equals("Metamorph STK")) &&
!(reader.getFormat().equals("Evotec Flex")) &&
!(reader.getFormat().equals("CellSens VSI")) &&
!(reader.getFormat().equals("PerkinElmer")) &&
!(reader.getFormat().equals("Fuji LAS 3000")) &&
!(reader.getFormat().equals("Micro-Manager")) &&
!(reader.getFormat().equals("BDV")) &&
!(reader.getFormat().equals("Zeiss AxioVision TIFF")) &&
!(reader.getFormat().equals("Olympus ScanR")) &&
!base[0].equals(file)) {
success = false;
msg = "Used files list 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 808ffe5

Please sign in to comment.