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

@ -16,7 +16,7 @@ go get git.akyoto.dev/go/color
```go
red := color.RGB(1.0, 0.0, 0.0)
fmt.Println(red.Format("red text"))
red.Println("red text")
```
## Tests
@ -29,8 +29,8 @@ coverage: 100.0% of statements
## Benchmarks
```
BenchmarkRGB-12 1000000000 0.3131 ns/op 0 B/op 0 allocs/op
BenchmarkFprint-12 6455497 186.2 ns/op 0 B/op 0 allocs/op
BenchmarkRGB-12 1000000000 0.3139 ns/op 0 B/op 0 allocs/op
BenchmarkFprint-12 25758495 45.38 ns/op 0 B/op 0 allocs/op
```
## License