Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompPhysVienna/n2p2
/ test_correct_result
Method
test_correct_result
test/python/test_Vec3D.py:202–205 ·
view source on GitHub ↗
(self, v1)
Source
from the content-addressed store, hash-verified
200
201
class
Test_norm2():
202
def
test_correct_result(self, v1):
203
assert v1.norm2() == pytest.approx(v1x * v1x +
204
v1y * v1y +
205
v1z * v1z),
"Norm incorrect."
206
207
class
Test_normalize():
208
def
test_correct_result(self, v1):
Callers
nothing calls this directly
Calls
1
norm2
Method · 0.80
Tested by
no test coverage detected