MCPcopy Create free account
hub / github.com/CompPhysVienna/n2p2 / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

test/cpp/test_CutoffFunction.cpp:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51BOOST_AUTO_TEST_SUITE(UnitTests)
52
53BOOST_AUTO_TEST_CASE(CheckCutoffTypeNumbers_CorrectNumbering)
54{
55 BOOST_REQUIRE_EQUAL(CutoffFunction::CT_HARD , 0);
56 BOOST_REQUIRE_EQUAL(CutoffFunction::CT_COS , 1);
57 BOOST_REQUIRE_EQUAL(CutoffFunction::CT_TANHU, 2);
58 BOOST_REQUIRE_EQUAL(CutoffFunction::CT_TANH , 3);
59 BOOST_REQUIRE_EQUAL(CutoffFunction::CT_EXP , 4);
60 BOOST_REQUIRE_EQUAL(CutoffFunction::CT_POLY1, 5);
61 BOOST_REQUIRE_EQUAL(CutoffFunction::CT_POLY2, 6);
62 BOOST_REQUIRE_EQUAL(CutoffFunction::CT_POLY3, 7);
63 BOOST_REQUIRE_EQUAL(CutoffFunction::CT_POLY4, 8);
64}
65
66BOOST_AUTO_TEST_CASE(CheckUnknownCutoffType_ThrowsError)
67{

Callers

nothing calls this directly

Calls 6

setCutoffTypeMethod · 0.80
sizeMethod · 0.80
getCutoffRadiusMethod · 0.80
getCutoffParameterMethod · 0.80
setCutoffParameterMethod · 0.80
getCutoffTypeMethod · 0.45

Tested by

no test coverage detected