From e6240342504f76f85fe8d9ffbdd62aec65811ffb Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 13 May 2024 16:56:11 +0800 Subject: [PATCH] Update 80_linalg.py --- tests/80_linalg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/80_linalg.py b/tests/80_linalg.py index d9295d3c..afedc5d7 100644 --- a/tests/80_linalg.py +++ b/tests/80_linalg.py @@ -38,7 +38,8 @@ assert element_value_list == copy_element_value_list test_vec2_copy = test_vec2 radians = random.uniform(-10*math.pi, 10*math.pi) test_vec2_copy = rotated_vec2(test_vec2_copy, radians) -assert test_vec2.rotate(radians) == test_vec2_copy +res = test_vec2.rotate(radians) +assert (res == test_vec2_copy), res # test smooth_damp vel = vec2(0, 0)