Skip to content
Permalink
Browse files

100% coverage for util

  • Loading branch information...
infinytum committed May 9, 2019
1 parent 6f140bc commit 8a57b063990beeea886ece157a42c54d45774779
Showing with 19 additions and 0 deletions.
  1. +19 −0 internal/util_test.go
@@ -0,0 +1,19 @@
package internal

import (
"reflect"
"testing"
)

func TestReverse(t *testing.T) {
a := []interface{}{"1", "2", "3", "4"}
b := []interface{}{"4", "3", "2", "1"}

c := [][]interface{}{a, b}
d := [][]interface{}{b, a}
Reverse(c)

if !reflect.DeepEqual(c, d) {
t.Error("c does not match reversed array")
}
}

0 comments on commit 8a57b06

Please sign in to comment.
You can’t perform that action at this time.