File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1054,8 +1054,15 @@ alist specified in `display-buffer-alist'."
1054
1054
(dotimes (i (length .std_output_list))
1055
1055
(when (aref .std_output_list i)
1056
1056
(insert (aref .std_output_list i))))))
1057
- ((eq .status_code 14 )
1058
- (insert .status_msg))
1057
+ ((or (eq .status_code 12 ) (eq .status_code 14 ))
1058
+ (insert (format " Status: %s \n\n "
1059
+ (leetcode--add-font-lock
1060
+ (format " %s (%s /%s )" .status_msg .total_correct .total_testcases)
1061
+ 'leetcode-error-face )))
1062
+ (insert (format " Test Case: \n %s \n\n " .last_testcase))
1063
+ (insert (format " Expected Answer: %s \n\n " .expected_output))
1064
+ (unless (string-empty-p .std_output)
1065
+ (insert (format " Stdout: \n %s \n " .std_output))))
1059
1066
((eq .status_code 15 )
1060
1067
(insert (leetcode--add-font-lock .status_msg 'leetcode-error-face ))
1061
1068
(insert " \n\n " )
You can’t perform that action at this time.
0 commit comments