From 6485bf3576eef042ca3eb2c5127b6300d49aaab6 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 13 May 2024 16:58:34 +0800 Subject: [PATCH] Update 80_linalg.py --- tests/80_linalg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/80_linalg.py b/tests/80_linalg.py index afedc5d7..7cc7f188 100644 --- a/tests/80_linalg.py +++ b/tests/80_linalg.py @@ -9,7 +9,7 @@ assert repr(math) == "" # test vec2-------------------------------------------------------------------- -def rotated_vec2(vec_2, radians: float): +def rotated_vec2(vec_2: vec2, radians: float): cos_theta = math.cos(radians) sin_theta = math.sin(radians) new_x = vec_2.x * cos_theta - vec_2.y * sin_theta @@ -39,7 +39,7 @@ test_vec2_copy = test_vec2 radians = random.uniform(-10*math.pi, 10*math.pi) test_vec2_copy = rotated_vec2(test_vec2_copy, radians) res = test_vec2.rotate(radians) -assert (res == test_vec2_copy), res +assert (res == test_vec2_copy), (res, test_vec2_copy, test_vec2) # test smooth_damp vel = vec2(0, 0)