diff options
Diffstat (limited to 'weed/util/inits_test.go')
| -rw-r--r-- | weed/util/inits_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/weed/util/inits_test.go b/weed/util/inits_test.go index f1ccb4f7b..f2c9b701f 100644 --- a/weed/util/inits_test.go +++ b/weed/util/inits_test.go @@ -5,6 +5,11 @@ import ( "testing" ) +func TestHumanReadableIntsMax(t *testing.T) { + assert.Equal(t, "1-2 ...", HumanReadableIntsMax(2, 1, 2, 3)) + assert.Equal(t, "1 3 ...", HumanReadableIntsMax(2, 1, 3, 5)) +} + func TestHumanReadableInts(t *testing.T) { assert.Equal(t, "1-3", HumanReadableInts(1, 2, 3)) assert.Equal(t, "1 3", HumanReadableInts(1, 3)) |
