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