CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
PrimClex_test.cpp
Go to the documentation of this file.
1 #define BOOST_TEST_DYN_LINK
2 #include <boost/test/unit_test.hpp>
3 
5 #include "casm/clex/PrimClex.hh"
6 
8 
10 #include "Common.hh"
11 #include "FCCTernaryProj.hh"
12 
13 using namespace CASM;
14 
15 BOOST_AUTO_TEST_SUITE(PrimClexTest)
16 
18 
20  BOOST_CHECK_EQUAL(prim.basis.size(), 1);
21 
22  // Construct from prim
23  PrimClex primclex(prim, null_log());
24  BOOST_CHECK_EQUAL(primclex.get_prim().basis.size(), 1);
25 
26  // Copy construct
27  PrimClex primclex2(primclex);
28  BOOST_CHECK_EQUAL(primclex2.get_prim().basis.size(), 1);
29 
30 }
31 
32 BOOST_AUTO_TEST_SUITE_END()
Index size() const
Definition: Array.hh:145
Structure specifies the lattice and atomic basis of a crystal.
Definition: Structure.hh:29
PrimClex * primclex
Definition: settings.cc:101
Main CASM namespace.
Definition: complete.cpp:8
Log & null_log()
Definition: Log.hh:211
BasicStructure< Site > FCC_ternary_prim()
Array< CoordType > basis
Lattice vectors that specifies periodicity of the crystal.
PrimClex is the top-level data structure for a CASM project.
Definition: PrimClex.hh:52
BOOST_AUTO_TEST_CASE(Basics)