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

Method test_nonfloat_argument

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

Source from the content-addressed store, hash-verified

100 assert c1.f(test_radius) == pytest.approx(cf_value), (
101 "Wrong cutoff function value.")
102 def test_nonfloat_argument(self, c1):
103 with pytest.raises(TypeError):
104 c1.f("a")
105
106class Test_df:
107 @pytest.mark.parametrize("cf_type", cutoff_function_types)

Callers

nothing calls this directly

Calls 1

fMethod · 0.45

Tested by

no test coverage detected