summaryrefslogtreecommitdiff
path: root/spew/common_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'spew/common_test.go')
-rw-r--r--spew/common_test.go5
1 files changed, 5 insertions, 0 deletions
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))},