Changeset 6287
 Timestamp:
 05/12/10 13:41:56 (10 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/components/lociplugins/test/loci/plugins/in/ImporterTest.java
r6286 r6287 1179 1179 assertEquals(sizeC,imps.length); 1180 1180 1181 // TODO  order of for loops correct? 1182 for (int t = 0; t < sizeT; t++) 1183 for (int c = 0; c < sizeC; c++) 1184 for (int z = 0; z < sizeT; z++) 1185 { 1181 for (int c = 0; c < sizeC; c++) { 1182 ImageStack st = imps[c].getStack(); 1183 assertEquals(sizeZ * sizeT,st.getSize()); 1184 int index = 0; 1185 for (int t = 0; t < sizeT; t++) { 1186 for (int z = 0; z < sizeZ; z++) { 1186 1187 // these next three statements called more times than needed but simplifies for loop logic 1187 ImageStack st = imps[c].getStack(); 1188 assertEquals(sizeZ * sizeT,st.getSize()); 1189 ImageProcessor proc = st.getProcessor(c+1); 1188 ImageProcessor proc = st.getProcessor(++index); 1190 1189 // test the values 1191 1190 assertEquals(z,zIndex(proc)); 1192 assertEquals( 0,cIndex(proc)); // this one should always be 01191 assertEquals(c,cIndex(proc)); // this one should always be 0 1193 1192 assertEquals(t,tIndex(proc)); 1194 1193 } 1194 } 1195 } 1195 1196 } 1196 1197
Note: See TracChangeset
for help on using the changeset viewer.