Skip to content
Snippets Groups Projects
Commit 8b8d7873 authored by Samuel Jones's avatar Samuel Jones
Browse files

Re #22515 Clang Formatting

parent ee3d5338
No related branches found
No related tags found
No related merge requests found
...@@ -223,8 +223,9 @@ bool isItSorted(Comparator const &compare, ...@@ -223,8 +223,9 @@ bool isItSorted(Comparator const &compare,
specNum++) { specNum++) {
if (!std::is_sorted(inputWorkspace.x(specNum).begin(), if (!std::is_sorted(inputWorkspace.x(specNum).begin(),
inputWorkspace.x(specNum).end(), inputWorkspace.x(specNum).end(),
[&](double lhs, double rhs) [&](double lhs, double rhs) -> bool {
-> bool { return compare(lhs, rhs); })) { return compare(lhs, rhs);
})) {
return false; return false;
} }
} }
......
#ifndef MANTID_ALGORITHMS_SORTXAXISTEST_H_ #ifndef MANTID_ALGORITHMS_SORTXAXISTEST_H_
#define MANTID_ALGORITHMS_SORTXAXISTEST_H_ #define MANTID_ALGORITHMS_SORTXAXISTEST_H_
#include "MantidAlgorithms/SortXAxis.h"
#include "MantidAPI/MatrixWorkspace.h" #include "MantidAPI/MatrixWorkspace.h"
#include "MantidAlgorithms/SortXAxis.h"
#include "MantidKernel/Workspace.h" #include "MantidKernel/Workspace.h"
#include <cxxtest/TestSuite.h> #include <cxxtest/TestSuite.h>
...@@ -26,15 +26,15 @@ MatrixWorkspace_sptr createWorkspace(const HistogramX &xData, ...@@ -26,15 +26,15 @@ MatrixWorkspace_sptr createWorkspace(const HistogramX &xData,
} }
class SortXAxisTest : public CxxTest::TestSuite { class SortXAxisTest : public CxxTest::TestSuite {
// This pair of boilerplate methods prevent the suite being created statically // This pair of boilerplate methods prevent the suite being created statically
// This means the constructor isn't called when running other tests // This means the constructor isn't called when running other tests
static SortXAxisTest *createSuite() { return new SortXAxisTest(); } static SortXAxisTest *createSuite() { return new SortXAxisTest(); }
static void destroySuite(SortXAxisTest *suite) { delete suite; } static void destroySuite(SortXAxisTest *suite) { delete suite; }
void testXAscending(){ void testXAscending() {
std::vector<double> xData = {1,2,3}; std::vector<double> xData = {1, 2, 3};
std::vector<double> yData = {1,2,3}; std::vector<double> yData = {1, 2, 3};
std::vector<double> eData = {1,2,3}; std::vector<double> eData = {1, 2, 3};
MatrixWorkspace_sptr unsortedws = createWorkspace(xData, yData, eData); MatrixWorkspace_sptr unsortedws = createWorkspace(xData, yData, eData);
...@@ -42,26 +42,24 @@ class SortXAxisTest : public CxxTest::TestSuite { ...@@ -42,26 +42,24 @@ class SortXAxisTest : public CxxTest::TestSuite {
alg.setProperty("InputWorkspacd", "unsortedws"); alg.setProperty("InputWorkspacd", "unsortedws");
alg.setProperty("OutputWorkspace", "sortedws"); alg.setProperty("OutputWorkspace", "sortedws");
alg.execute(); alg.execute();
MatrixWorkspace_sptr sortedws = MatrixWorkspace_sptr sortedws =
} }
void testXDescending(){} void testXDescending() {}
void testOnMultipleSpectrum(){} void testOnMultipleSpectrum() {}
void testSortsXHistogramAscending(){} void testSortsXHistogramAscending() {}
void testSortsXHistogramDescending(){} void testSortsXHistogramDescending() {}
void testSortXWorksChild(){} void testSortXWorksChild() {}
void testDxMultipleSpectrum(){} void testDxMultipleSpectrum() {}
void testDxHistogramAscending(){} void testDxHistogramAscending() {}
void testSortDescending(){} void testSortDescending() {}
}; };
#endif /*MANTID_ALGORITHMS_SORTXAXISTEST_H_*/ #endif /*MANTID_ALGORITHMS_SORTXAXISTEST_H_*/
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