Improved tests

This commit is contained in:
Eduard Urbach 2024-03-05 19:10:27 +01:00
parent 7db9e36587
commit d5335f4bad
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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