mirror of https://github.com/databricks/cli.git
14 lines
230 B
Go
14 lines
230 B
Go
|
package testcli
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestSort(t *testing.T) {
|
||
|
input := []string{"a", "bc", "cd"}
|
||
|
stableSortReverseLength(input)
|
||
|
assert.Equal(t, []string{"bc", "cd", "a"}, input)
|
||
|
}
|