Skip to content

Commit

Permalink
Refs #10135. Fixing broken unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wedel committed Sep 11, 2014
1 parent 9267c3c commit 94e3a75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Code/Mantid/Framework/Geometry/test/CrystalStructureTest.h
Expand Up @@ -4,6 +4,7 @@
#include <cxxtest/TestSuite.h>

#include "MantidGeometry/Crystal/CrystalStructure.h"
#include "MantidGeometry/Crystal/PointGroupFactory.h"

using namespace Mantid::Geometry;
using namespace Mantid::Kernel;
Expand All @@ -18,7 +19,7 @@ class CrystalStructureTest : public CxxTest::TestSuite

CrystalStructureTest() :
m_CsCl(4.126, 4.126, 4.126),
m_pg(new PointGroupLaue13),
m_pg(PointGroupFactory::Instance().createPointGroup("m-3m")),
m_centering(new ReflectionConditionPrimitive)
{
}
Expand Down Expand Up @@ -129,7 +130,7 @@ class CrystalStructureTest : public CxxTest::TestSuite
double dMax = 4.0;

// make a structure with P-1
CrystalStructure structure(m_CsCl);
CrystalStructure structure(m_CsCl, PointGroupFactory::Instance().createPointGroup("-1"));

std::vector<V3D> unique = structure.getUniqueHKLs(dMin, dMax);
std::vector<V3D> peaks = structure.getHKLs(dMin, dMax);
Expand Down
6 changes: 4 additions & 2 deletions Code/Mantid/Framework/SINQ/test/PoldiPeakCollectionTest.h
Expand Up @@ -10,6 +10,8 @@
#include "MantidAPI/TableRow.h"

#include "MantidAPI/WorkspaceFactory.h"
#include "MantidGeometry/Crystal/PointGroupFactory.h"

#include <stdexcept>

using namespace Mantid::Poldi;
Expand Down Expand Up @@ -250,7 +252,7 @@ class PoldiPeakCollectionTest : public CxxTest::TestSuite
void testStructureConstructor()
{
UnitCell CsCl(4.126, 4.126, 4.126);
PointGroup_sptr m3m = boost::make_shared<PointGroupLaue13>();
PointGroup_sptr m3m = PointGroupFactory::Instance().createPointGroup("m-3m");

CrystalStructure_sptr structure = boost::make_shared<CrystalStructure>(CsCl, m3m);

Expand Down Expand Up @@ -286,7 +288,7 @@ class PoldiPeakCollectionTest : public CxxTest::TestSuite
void testSetPeaks()
{
UnitCell CsCl(4.126, 4.126, 4.126);
PointGroup_sptr m3m = boost::make_shared<PointGroupLaue13>();
PointGroup_sptr m3m = PointGroupFactory::Instance().createPointGroup("m-3m");

CrystalStructure_sptr structure = boost::make_shared<CrystalStructure>(CsCl, m3m);

Expand Down

0 comments on commit 94e3a75

Please sign in to comment.