From a4b53deb9bf78b69198092ddafa308d3be2bd002 Mon Sep 17 00:00:00 2001 From: Anaminus Date: Thu, 19 Feb 2015 07:06:59 -0600 Subject: Add support for sorting keys that are arrays. --- spew/common_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spew/common_test.go') diff --git a/spew/common_test.go b/spew/common_test.go index 3bea81f..8e741cd 100644 --- a/spew/common_test.go +++ b/spew/common_test.go @@ -166,6 +166,11 @@ func TestSortValues(t *testing.T) { []reflect.Value{b, a, c}, []reflect.Value{a, b, c}, }, + // Array + { + []reflect.Value{v([3]int{3, 2, 1}), v([3]int{1, 3, 2}), v([3]int{1, 2, 3})}, + []reflect.Value{v([3]int{1, 2, 3}), v([3]int{1, 3, 2}), v([3]int{3, 2, 1})}, + }, // Uintptrs. { []reflect.Value{v(uintptr(2)), v(uintptr(1)), v(uintptr(3))}, -- cgit v1.2.3