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

Method test_empty_initialization

test/python/test_Vec3D.py:24–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 v = Vec3D(True)
23 assert isinstance(v, Vec3D), "Can not create skeleton Vec3D instance."
24 def test_empty_initialization(self):
25 v = Vec3D()
26 assert isinstance(v, Vec3D), "Can not create empty Vec3D instance."
27 assert v.r == [0.0, 0.0, 0.0], ("Empty Vec3D is not initialized "
28 "correctly.")
29 def test_float_initialization(self):
30 v = Vec3D(1.0, 2.0, 3.0)
31 assert isinstance(v, Vec3D), "Can not create Vec3D instance."

Callers

nothing calls this directly

Calls 1

Vec3DClass · 0.85

Tested by

no test coverage detected