mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Benchmark for alliterative animal
This commit is contained in:
parent
ec99ac305c
commit
b489e299fe
@ -4,6 +4,12 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func BenchmarkAlliterativeAnimal(b *testing.B) {
|
||||||
|
for i := 0; i < b.N; i++ {
|
||||||
|
randomAlliterateCombo()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func TestReverseList(t *testing.T) {
|
func TestReverseList(t *testing.T) {
|
||||||
s := []int64{1, 10, 2, 20}
|
s := []int64{1, 10, 2, 20}
|
||||||
if reverseSliceInt64(s)[0] != 20 {
|
if reverseSliceInt64(s)[0] != 20 {
|
||||||
|
Loading…
Reference in New Issue
Block a user