Skip to content

Commit 517e873

Browse files
committed
Remove commented out test code
1 parent f9fe157 commit 517e873

File tree

5 files changed

+0
-252
lines changed

5 files changed

+0
-252
lines changed

scijava-ops-image/src/test/java/org/scijava/ops/image/filter/gauss/GaussTest.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -80,29 +80,4 @@ public void gaussRegressionTest() {
8080
.getRealDouble(), 0);
8181
}
8282
}
83-
84-
//
85-
// /** Tests the Gaussian matching. */
86-
// @Test
87-
// public void gaussMatchingTest() {
88-
//
89-
// Gauss defaultGaussRAI = ops.op(Ops.Filter.Gauss.class, ArrayImgs.bytes(1,
90-
// 2),
91-
// new double[] {1, 2});
92-
// assertTrue(defaultGaussRAI instanceof DefaultGaussRAI);
93-
//
94-
// defaultGaussRAI = ops.op(
95-
// Ops.Filter.Gauss.class,
96-
// ArrayImgs.bytes(1, 2),
97-
// ArrayImgs.bytes(1, 2),
98-
// new double[] {1, 2});
99-
// assertTrue(defaultGaussRAI instanceof DefaultGaussRAI);
100-
//
101-
// Gauss defaultGaussRA = ops.op(
102-
// Ops.Filter.Gauss.class,
103-
// ArrayImgs.bytes(1, 2),
104-
// Views.extendMirrorSingle(ArrayImgs.bytes(1, 2)),
105-
// new double[] {1, 2});
106-
// assertTrue(defaultGaussRA instanceof DefaultGaussRA);
107-
// }
10883
}

scijava-ops-image/src/test/java/org/scijava/ops/image/geom/BitTypeVertexInterpolatorTest.java

Lines changed: 0 additions & 84 deletions
This file was deleted.

scijava-ops-image/src/test/java/org/scijava/ops/image/geom/DefaultVertexInterpolatorTest.java

Lines changed: 0 additions & 98 deletions
This file was deleted.

scijava-ops-image/src/test/java/org/scijava/ops/image/map/neighborhood/MapNeighborhoodTest.java

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -76,42 +76,6 @@ public void testMapNeighborhoodsAccess() {
7676
}
7777
}
7878

79-
// TODO: implement
80-
//
81-
// @Test
82-
// @Ignore("There is no way to throw an error for invalid typed computers at the moment.")
83-
// public
84-
// void testMapNeighborhoodsWrongArgs() {
85-
// final Op mapOp =
86-
// ops.op(DefaultMapNeighborhood.class, out, in,
87-
// new RectangleShape(1, false), new Increment());
88-
//
89-
// // ClassCastException will be thrown
90-
// mapOp.run();
91-
// }
92-
//
93-
// /**
94-
// * Test if every neighborhood pixel of the image was really accessed during
95-
// * the map operation.
96-
// *
97-
// * @see MapNeighborhoodWithCenter
98-
// */
99-
// @Test
100-
// public void testMapNeighborhoodsWithCenterAccess() {
101-
// final Op mapOp =
102-
// ops.op(MapNeighborhoodWithCenter.class, out, in,
103-
// new RectangleShape(1, false), new CountNeighborsWithCenter());
104-
// mapOp.run();
105-
//
106-
// for (final ByteType t : out) {
107-
// assertEquals(9, t.get());
108-
// }
109-
//
110-
// for (final ByteType t : in) {
111-
// assertEquals(9, t.get());
112-
// }
113-
// }
114-
11579
/**
11680
* Function which increments the output value for every pixel in the
11781
* neighborhood.

scijava-ops-image/src/test/java/org/scijava/ops/image/math/ImageBinaryMathTest.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,6 @@ public void addRealTypeC() {
122122
validateResult(out, originalVal);
123123
}
124124

125-
// @Test
126-
// public void addRealTypeI() {
127-
// final Img<IntType> imgIntType = TestImgGeneration.intArray(true, 10, 10);
128-
// int originalVal = imgIntType.cursor().next().get();
129-
//
130-
// ops.op("math.add").input(imgIntType, I).mutate1();
131-
// validateResult(imgIntType, originalVal);
132-
// }
133-
134125
private void validateResult(Img<IntType> result, int originalVal) {
135126
assertEquals(result.cursor().next().get(), originalVal + I.get());
136127
}

0 commit comments

Comments
 (0)