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

Method test_nonfloat_argument

test/python/test_CutoffFunction.py:122–124  ·  view source on GitHub ↗
(self, c1)

Source from the content-addressed store, hash-verified

120 assert c1.df(test_radius) == pytest.approx(cf_dvalue), (
121 "Wrong cutoff derivative value.")
122 def test_nonfloat_argument(self, c1):
123 with pytest.raises(TypeError):
124 c1.df("a")
125
126class Test_fdf:
127 @pytest.mark.parametrize("cf_type", cutoff_function_types)

Callers

nothing calls this directly

Calls 1

dfMethod · 0.45

Tested by

no test coverage detected