mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
5c973e58bd
* Nested Folders: Add store tests * Fix parent order * Fix update * skip tests! * Export test helpers for now
16 lines
267 B
Go
16 lines
267 B
Go
package util
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/google/go-cmp/cmp"
|
|
)
|
|
|
|
func TestReverse(t *testing.T) {
|
|
input := []int{1, 2, 3, 4, 5}
|
|
|
|
if diff := cmp.Diff([]int{5, 4, 3, 2, 1}, Reverse(input)); diff != "" {
|
|
t.Errorf("Result mismatch (-want +got):\n%s", diff)
|
|
}
|
|
}
|