forked from npshub/mantid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PointStandardDeviationsTest.h
34 lines (28 loc) · 1.22 KB
/
PointStandardDeviationsTest.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once
#include <cxxtest/TestSuite.h>
#include "MantidHistogramData/PointStandardDeviations.h"
using namespace Mantid;
using namespace HistogramData;
class PointStandardDeviationsTest : public CxxTest::TestSuite {
public:
// This pair of boilerplate methods prevent the suite being created statically
// This means the constructor isn't called when running other tests
static PointStandardDeviationsTest *createSuite() { return new PointStandardDeviationsTest(); }
static void destroySuite(PointStandardDeviationsTest *suite) { delete suite; }
void test_has_correct_mixins() {
PointStandardDeviations data;
TS_ASSERT_THROWS_NOTHING(UNUSED_ARG(
(dynamic_cast<detail::StandardDeviationVectorOf<PointStandardDeviations, HistogramDx, PointVariances> &>(
data))));
}
void test_construct_default() {
const PointStandardDeviations points{};
TS_ASSERT(!points);
}
};