diff options
| author | Anaminus <[email protected]> | 2015-02-19 07:06:59 -0600 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2015-02-23 15:16:52 -0600 |
| commit | a4b53deb9bf78b69198092ddafa308d3be2bd002 (patch) | |
| tree | d6e98ef0bc64c1cb4134dc51582851ef9336fd65 /spew/common_test.go | |
| parent | 1aaf839fb07e099361e445273993ccd9adc21b07 (diff) | |
Add support for sorting keys that are arrays.
Diffstat (limited to 'spew/common_test.go')
| -rw-r--r-- | spew/common_test.go | 5 |
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))}, |
