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

Function BOOST_DATA_TEST_CASE

test/cpp/test_CutoffFunction.cpp:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136BOOST_DATA_TEST_CASE(CalculateFunctionsOutOfCutoff_ZeroResult,
137 bdata::make(types),
138 type)
139{
140 CutoffFunction fc;
141 fc.setCutoffType(type);
142 fc.setCutoffRadius(cutoffRadius);
143 fc.setCutoffParameter(cutoffParameter);
144 BOOST_REQUIRE_SMALL(fc.f(1.5 * cutoffRadius), accuracy);
145}
146
147BOOST_DATA_TEST_CASE(CalculateDerivativesOutOfCutoff_ZeroResult,
148 bdata::make(types),

Callers 1

Calls 6

setCutoffTypeMethod · 0.80
setCutoffRadiusMethod · 0.80
setCutoffParameterMethod · 0.80
fMethod · 0.45
dfMethod · 0.45
fdfMethod · 0.45

Tested by

no test coverage detected