Commit 84188885 authored by Tobias Lasser's avatar Tobias Lasser
Browse files

fix projector tests

parent 001bce8d
Pipeline #155903 failed with stages
in 2 minutes and 20 seconds
......@@ -457,12 +457,6 @@ SCENARIO("Calls to functions of super class") {
}
BinaryMethod op(volumeDescriptor, sinoDescriptor,geom);
// WHEN("Checking whether projector is a spd operator") {
// THEN("Returns false") {
// REQUIRE_FALSE(op.isSpd());
// }
// }
WHEN("Projector is cloned") {
auto opClone = op.clone();
auto sinoClone = sino;
......@@ -475,7 +469,7 @@ SCENARIO("Calls to functions of super class") {
op.applyAdjoint(sino, volume);
opClone->applyAdjoint(sino, volumeClone);
REQUIRE(volume == volumeClone);
REQUIRE((volume-volumeClone).squaredL2Norm() == Approx(0.0));
}
}
}
......
......@@ -258,12 +258,6 @@ SCENARIO("Calls to functions of super class") {
JosephsMethod op(volumeDescriptor,sinoDescriptor,geom);
// WHEN("Checking whether projector is a spd operator") {
// THEN("Returns false") {
// REQUIRE_FALSE(op.isSpd());
// }
// }
WHEN("Projector is cloned") {
auto opClone = op.clone();
auto sinoClone = sino;
......@@ -277,7 +271,7 @@ SCENARIO("Calls to functions of super class") {
op.applyAdjoint(sino,volume);
opClone->applyAdjoint(sino,volumeClone);
REQUIRE( isApprox(volume,volumeClone) );
REQUIRE((volume-volumeClone).squaredL2Norm() == Approx(0.0));
}
}
}
......
......@@ -237,12 +237,6 @@ SCENARIO("Calls to functions of super class") {
}
SiddonsMethod op(volumeDescriptor,sinoDescriptor,geom);
// WHEN("Checking whether projector is a spd operator") {
// THEN("Returns false") {
// REQUIRE_FALSE(op.isSpd());
// }
// }
WHEN("Projector is cloned") {
auto opClone = op.clone();
auto sinoClone = DataContainer(sino.getDataDescriptor());
......@@ -255,7 +249,7 @@ SCENARIO("Calls to functions of super class") {
op.applyAdjoint(sino,volume);
opClone->applyAdjoint(sino,volumeClone);
REQUIRE(isApprox(volume,volumeClone));
REQUIRE((volume-volumeClone).squaredL2Norm() == Approx(0.0));
}
}
}
......
......@@ -50,13 +50,6 @@ TEMPLATE_TEST_CASE("Scenario: Calls to functions of super class", "", JosephsMet
TestType fast(volumeDescriptor,sinoDescriptor,geom);
TestType slow(volumeDescriptor,sinoDescriptor,geom,false);
// WHEN("Checking whether projector is a spd operator") {
// THEN("Returns false") {
// REQUIRE_FALSE(slow.isSpd());
// REQUIRE_FALSE(fast.isSpd());
// }
// }
WHEN("Projector is cloned") {
auto fastClone = fast.clone();
auto slowClone = slow.clone();
......
......@@ -53,12 +53,6 @@ TEMPLATE_TEST_CASE("Scenario: Calls to functions of super class", "",
}
TestType op(volumeDescriptor,sinoDescriptor,geom);
// WHEN("Checking whether projector is a spd operator") {
// THEN("Returns false") {
// REQUIRE_FALSE(op.isSpd());
// }
// }
WHEN("Projector is cloned") {
auto opClone = op.clone();
auto sinoClone = DataContainer<data_t>(sinoDescriptor);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment