Improved tests

This commit is contained in:
2024-03-05 19:10:27 +01:00
parent aae983fd5b
commit 13f4c5fb0f
4 changed files with 19 additions and 12 deletions

View File

@ -7,7 +7,7 @@ import (
// These constants represent the escape codes needed to display color in terminals.
const (
format = "\x1b[38;2;%d;%d;%dm%s\x1b[0m"
formatLine = format + "\n"
formatLine = "\x1b[38;2;%d;%d;%dm%s\n\x1b[0m"
)
// Terminal is a boolean that indicates if we're in a terminal with truecolor support.