Skip to content

Commit

Permalink
colors update
Browse files Browse the repository at this point in the history
  • Loading branch information
ksimuk committed Apr 6, 2023
1 parent ea18215 commit c74cb47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func getFeedback(results gradescopeResult) string {
failedTests := filterTests(results.Tests, false)
passedTests := filterTests(results.Tests, true)
if len(failedTests) > 0 {
output.WriteString("<br/><p style='color: #F00'>")
output.WriteString("<br/><p style='color: #b94a48'>")
output.WriteString("<b>Failed Tests</b><br/>")
for _, test := range failedTests {
output.WriteString(fmt.Sprintf("%s (%.2f/%.2f)<br/>", test.Name, test.Score, test.MaxScore))
Expand All @@ -113,7 +113,7 @@ func getFeedback(results gradescopeResult) string {
}

if len(passedTests) > 0 {
output.WriteString("<br/><p style='color: #0F0'>")
output.WriteString("<br/><p style='color: #468847'>")
output.WriteString("<b>Passed Tests</b><br/>")
for _, test := range passedTests {
output.WriteString(fmt.Sprintf("%s (%.2f/%.2f)<br/>", test.Name, test.Score, test.MaxScore))
Expand Down

0 comments on commit c74cb47

Please sign in to comment.