Skip to content
Snippets Groups Projects
Commit d3d46b5a authored by Nick Draper's avatar Nick Draper
Browse files

clang format for this pr

parent 5bef2440
No related merge requests found
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
// SPDX - License - Identifier: GPL - 3.0 + // SPDX - License - Identifier: GPL - 3.0 +
#pragma once #pragma once
#include "MantidQtWidgets/Common/FitPropertyBrowser.h" #include "MantidAPI/FunctionFactory.h"
#include "MantidAPI/IFunction1D.h" #include "MantidAPI/IFunction1D.h"
#include "MantidAPI/ParamFunction.h" #include "MantidAPI/ParamFunction.h"
#include "MantidAPI/FunctionFactory.h" #include "MantidQtWidgets/Common/FitPropertyBrowser.h"
#include <cxxtest/TestSuite.h> #include <cxxtest/TestSuite.h>
using namespace Mantid::API; using namespace Mantid::API;
...@@ -41,17 +41,20 @@ DECLARE_FUNCTION(FitPropertyBrowserTest_Funct) ...@@ -41,17 +41,20 @@ DECLARE_FUNCTION(FitPropertyBrowserTest_Funct)
class FitPropertyBrowserTest : public CxxTest::TestSuite { class FitPropertyBrowserTest : public CxxTest::TestSuite {
public: public:
//This is a very specific test for a bug that is now fixed to prevent regression // This is a very specific test for a bug that is now fixed to prevent
// regression
void test_FunctionFactory_notification_is_released() { void test_FunctionFactory_notification_is_released() {
//create a FunctionBrowser // create a FunctionBrowser
auto fpBrowser = std::make_unique<MantidQt::MantidWidgets::FitPropertyBrowser>(); auto fpBrowser =
//initialise it - this adds an observer on the function factory update message std::make_unique<MantidQt::MantidWidgets::FitPropertyBrowser>();
// initialise it - this adds an observer on the function factory update
// message
fpBrowser->init(); fpBrowser->init();
//delete the FunctionBrowser // delete the FunctionBrowser
fpBrowser.reset(); fpBrowser.reset();
//Make sure the FunctionFactory does not have a dead link as an observer // Make sure the FunctionFactory does not have a dead link as an observer
TS_ASSERT_THROWS_NOTHING(FunctionFactory::Instance().unsubscribe("FitPropertyBrowserTest_Funct");) TS_ASSERT_THROWS_NOTHING(FunctionFactory::Instance().unsubscribe(
"FitPropertyBrowserTest_Funct");)
} }
}; };
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