1
0
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:
Zack Scholl 2017-03-24 07:18:20 -06:00
parent ec99ac305c
commit b489e299fe

View File

@ -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 {