From 949db94cfc11d042d11ad95d059ca03292f1c972 Mon Sep 17 00:00:00 2001
From: "Egli Adrian (IT-SCI-API-PFI)" <adrian.egli@sbb.ch>
Date: Thu, 19 Sep 2019 08:43:17 +0200
Subject: [PATCH] vec2d testing

---
 tests/test_flatland_core_grid_grid_utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_flatland_core_grid_grid_utils.py b/tests/test_flatland_core_grid_grid_utils.py
index 61693c4f..35ecd247 100644
--- a/tests/test_flatland_core_grid_grid_utils.py
+++ b/tests/test_flatland_core_grid_grid_utils.py
@@ -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():
-- 
GitLab