From 325218bff0f937a412e68418638391ec29f5aafb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=9A=93=E6=99=9F?= <2067144018@qq.com> Date: Thu, 4 Dec 2025 20:29:57 +0800 Subject: [PATCH] fix bugs --- tests/901_array2d_extra1.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/901_array2d_extra1.py b/tests/901_array2d_extra1.py index 037bc3b1..3e34ed67 100644 --- a/tests/901_array2d_extra1.py +++ b/tests/901_array2d_extra1.py @@ -60,16 +60,18 @@ try: array2d.fromlist(color_fg), array2d(51, 51, 1) ) + assert False, "here expect a TypeError" except TypeError as e: - pass + assert "color32" in str(e) or "None" in str(e) try: array2d.fromlist(text_data).render_with_color( array2d(51, 51, 1), array2d.fromlist(color_bg) ) + assert False, "here expect a TypeError" except TypeError as e: - pass + assert "color32" in str(e) or "None" in str(e) # ====array2d_like_any @@ -98,7 +100,7 @@ for i in range(10): data[vec2i(i,j)] = 10 del data[vec2i(0,0)] - +assert data[vec2i(0,0)] == data.default # ====chunked_array2d__len__ data = chunked_array2d(4)