Color/tests/color_test.go

41 lines
951 B
Go
Raw Permalink Normal View History

2024-08-28 09:37:42 -05:00
package color_test
import (
"testing"
color "git.sharkk.net/Go/Color"
)
func TestPrint(t *testing.T) {
color.Black.Print("Black\n")
color.White.Print("White\n")
color.Red.Print("Red\n")
color.Green.Print("Green\n")
color.Blue.Print("Blue\n")
color.Yellow.Print("Yellow\n")
color.Magenta.Print("Magenta\n")
color.Cyan.Print("Cyan\n")
}
func TestPrintf(t *testing.T) {
color.Black.Printf("%s\n", "Black")
color.White.Printf("%s\n", "White")
color.Red.Printf("%s\n", "Red")
color.Green.Printf("%s\n", "Green")
color.Blue.Printf("%s\n", "Blue")
color.Yellow.Printf("%s\n", "Yellow")
color.Magenta.Printf("%s\n", "Magenta")
color.Cyan.Printf("%s\n", "Cyan")
}
func TestPrintln(t *testing.T) {
color.Black.Println("Black")
color.White.Println("White")
color.Red.Println("Red")
color.Green.Println("Green")
color.Blue.Println("Blue")
color.Yellow.Println("Yellow")
color.Magenta.Println("Magenta")
color.Cyan.Println("Cyan")
}