From b46e22471feea1bc501ff30d806fd5c03066873b Mon Sep 17 00:00:00 2001
From: Boming Zhang <bomingzh@sjtu.edu.cn>
Date: Fri, 11 Oct 2024 04:23:46 -0400
Subject: [PATCH] feat(parser/diff): more hints in comments (#54)

---
 internal/parser/diff/parser.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/internal/parser/diff/parser.go b/internal/parser/diff/parser.go
index d5df1a2..a1800a4 100644
--- a/internal/parser/diff/parser.go
+++ b/internal/parser/diff/parser.go
@@ -72,7 +72,9 @@ func (*Diff) Run(results []stage.ExecutorResult, confAny any) (
 				if compareChars(string(answer), result.Files[output.FileName],
 					output.CompareSpace) {
 					score += output.Score
+					comment += "Pass!\n"
 				} else {
+					comment += "Fail!\n"
 					comment += fmt.Sprintf("Difference found in `%s`.\n",
 						output.FileName)
 					if !output.AlwaysHide {
@@ -92,6 +94,8 @@ func (*Diff) Run(results []stage.ExecutorResult, confAny any) (
 							"```diff\n%s\n```\n",
 							diffOutput,
 						)
+					} else {
+						comment += "(Content hidden.)\n"
 					}
 				}
 			}