Codebase list votca-xtp / debian/1.5-1 src / tests / test_segmenttype.cc
debian/1.5-1

Tree @debian/1.5-1 (Download .tar.gz)

test_segmenttype.cc @debian/1.5-1raw · history · blame

/*
 * Copyright 2009-2018 The VOTCA Development Team (http://www.votca.org)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
#define BOOST_TEST_MAIN

#define BOOST_TEST_MODULE segmenttype_test
#include <boost/test/unit_test.hpp>
#include <votca/xtp/segmenttype.h>

using namespace votca::xtp;
BOOST_AUTO_TEST_SUITE(segmenttype_test)

BOOST_AUTO_TEST_CASE(constructors_test) { 
  SegmentType segT;
  SegmentType segT2(1,"Name","SP","file.orb","coord.xyz",true);
}

BOOST_AUTO_TEST_CASE(getters_test) {
  SegmentType segT(1,"Name","SP","file.orb","coord.xyz",true);
  BOOST_CHECK_EQUAL(segT.getBasisName(),"SP");
  BOOST_CHECK_EQUAL(segT.getOrbitalsFile(),"file.orb");
  BOOST_CHECK_EQUAL(segT.getQMCoordsFile(),"coord.xyz");
  BOOST_CHECK_EQUAL(segT.canRigidify(),true);
  BOOST_CHECK_EQUAL(segT.getId(),1); 
}

BOOST_AUTO_TEST_SUITE_END()