Skip to content
Snippets Groups Projects
Commit 949db94c authored by Egli Adrian (IT-SCI-API-PFI)'s avatar Egli Adrian (IT-SCI-API-PFI)
Browse files

vec2d testing

parent ffae8dd9
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ def test_vec2d_norm():
res_1 = Vec2d.get_norm(node_a)
res_2 = Vec2d.get_norm(node_b)
assert np.sqrt(1 * 1 + 2 * 2) == res_1
assert np.sqrt(1 * 1 + (-2) * -(2)) == res_2
assert np.sqrt(1 * 1 + (-2) * (-2)) == res_2
def test_vec2d_normalize():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment