forked from npshub/mantid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MDBinTest.h
28 lines (25 loc) · 916 Bytes
/
MDBinTest.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
// 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 "MantidDataObjects/MDBin.h"
#include "MantidDataObjects/MDEventFactory.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>
using namespace Mantid;
using namespace Mantid::DataObjects;
class MDBinTest : public CxxTest::TestSuite {
public:
void test_constructor() {
using MDE = MDLeanEvent<3>;
MDBin<MDE, 3> bin;
for (size_t d = 0; d < 3; d++) {
TS_ASSERT_EQUALS(bin.m_min[d], -std::numeric_limits<coord_t>::max());
TS_ASSERT_EQUALS(bin.m_max[d], std::numeric_limits<coord_t>::max());
}
}
};