Improved tests
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user