Skip to content

Commit a5be052

Browse files
committed
Correct test expected result
1 parent 0fd1c5f commit a5be052

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/test/java/uk/ac/sussex/gdsc/ij/foci/AssignedPointUtilsTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,9 @@ void canExtractRoiPointsFromImage(RandomSeed seed) {
232232
Assertions.assertEquals(x[i], points[i].x);
233233
Assertions.assertEquals(y[i], points[i].y);
234234
Assertions.assertEquals(pos, points[i].z);
235-
Assertions.assertEquals(0, points[i].getChannel());
236-
Assertions.assertEquals(0, points[i].getFrame());
235+
// PointRoi positions are converted to 1-indexed channel and frame for a z-stack
236+
Assertions.assertEquals(1, points[i].getChannel());
237+
Assertions.assertEquals(1, points[i].getFrame());
237238
}
238239

239240
// Set into the ROI in bulk

0 commit comments

Comments
 (0)