Skip to content
Snippets Groups Projects
Commit 37e641aa authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm one GUI unit test

parent 6063213a
No related branches found
No related tags found
1 merge request!1856unproblematic changes anticipated from FlatDetector refactoring
Pipeline #108316 passed
...@@ -11,24 +11,6 @@ ...@@ -11,24 +11,6 @@
#include "GUI/Support/Type/Unit.h" #include "GUI/Support/Type/Unit.h"
#include "Tests/GTestWrapper/google_test.h" #include "Tests/GTestWrapper/google_test.h"
TEST(TestDetectorItems, resolutionFunction)
{
InstrumentModel model;
auto* instrument = model.addInstrumentItem<GISASInstrumentItem>();
DetectorItem* detectorItem = instrument->detectorItem();
detectorItem->setResolutionFunctionType<ResolutionFunction2DGaussianItem>();
auto detector = detectorItem->createDetector();
const auto* convol =
dynamic_cast<const ConvolutionDetectorResolution*>(detector->detectorResolution());
const auto* gaussian =
dynamic_cast<const ResolutionFunction2DGaussian*>(convol->getResolutionFunction2D());
EXPECT_EQ(Units::rad2deg(gaussian->sigmaX()), 0.02);
}
TEST(TestDetectorItems, resolutionFunctionUnit) TEST(TestDetectorItems, resolutionFunctionUnit)
{ {
const auto asString = [](const std::variant<QString, Unit>& unit) { const auto asString = [](const std::variant<QString, Unit>& unit) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment