Commit 40faab6

Richard Luby <richluby@gmail.com>
2016-11-08 10:48:52
made christmas
1 parent fb0a2ea
Changed files (1)
command.go
@@ -115,7 +115,7 @@ func runTest(clientTest *ClientTest) {
 		width, _, _ := terminal.GetSize(int(os.Stdin.Fd()))
 		if strings.Compare(input, record.Answer) == 0 {
 			// dynamically determine width of screen for right-alignment
-			fmt.Printf("%"+strconv.Itoa(width)+"s\n", COLOR_GREEN+"[ ]"+COLOR_RESET)
+			fmt.Printf("%"+strconv.Itoa(width)+"s\n", COLOR_GREEN+"[✓]"+COLOR_RESET)
 			clientTest.Records[i].AnsweredCorrectly = true
 			numCorrect++
 		} else if strings.Compare(input, "exit") == 0 {
@@ -124,7 +124,7 @@ func runTest(clientTest *ClientTest) {
 		} else {
 			fmt.Printf("%s%"+strconv.Itoa(width-len(record.Answer)-5)+"s\n",
 				COLOR_RED+record.Answer,
-				"[x]"+COLOR_RESET)
+				"[X]"+COLOR_RESET)
 			clientTest.Records[i].ClientAnswer = input
 		}
 	}