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

Method test_components

test/python/test_Vec3D.py:56–59  ·  view source on GitHub ↗
(self, v1)

Source from the content-addressed store, hash-verified

54 with pytest.raises(IndexError):
55 v1[3]
56 def test_components(self, v1):
57 assert v1[0] == v1x, "Wrong x component."
58 assert v1[1] == v1y, "Wrong y component."
59 assert v1[2] == v1z, "Wrong z component."
60
61class Test___setitem__():
62 def test_no_integer_index(self, v1):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected