From 98ac77cc73af64fae1ac5765c8053a629bec0aa3 Mon Sep 17 00:00:00 2001 From: lc <18783417278@163.com> Date: Wed, 8 Apr 2026 15:52:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E9=AA=8C2=E8=84=9A=E6=9C=AC=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/test_lab2_full.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/test_lab2_full.sh b/scripts/test_lab2_full.sh index 7e28a1a..b323b38 100755 --- a/scripts/test_lab2_full.sh +++ b/scripts/test_lab2_full.sh @@ -94,10 +94,10 @@ run_test() { if [[ -f "$expected_file" ]]; then # 忽略空格差异 (-b -w) if diff -q -b -w "$expected_file" "$actual_file" > /dev/null 2>&1; then - echo -e "${GREEN}✓ 通过${NC}" + echo -e "${GREEN} 通过${NC}" ((passed++)) || true else - echo -e "${RED}✗ 输出不匹配${NC}" + echo -e "${RED} 输出不匹配${NC}" ((failed++)) || true fi else @@ -134,9 +134,9 @@ echo -e "失败:${RED}$failed${NC}" echo "" if [[ $failed -eq 0 ]]; then - echo -e "${GREEN}🎉 所有测试通过!实验 2 任务完成。${NC}" + echo -e "${GREEN} 所有测试通过!实验 2 任务完成。${NC}" exit 0 else - echo -e "${RED}✗ 有 $failed 个测试失败,请检查逻辑。${NC}" + echo -e "${RED} 有 $failed 个测试失败,请检查逻辑。${NC}" exit 1 fi