Signed-off-by: John Howard <jhoward@microsoft.com> Upstream-commit: 0c7eab31577d65f0d33766af533144e358ffe651 Component: engine
14 lines
252 B
Go
14 lines
252 B
Go
package main
|
|
|
|
import (
|
|
"sort"
|
|
"testing"
|
|
)
|
|
|
|
// Tests if the subcommands of docker are sorted
|
|
func TestDockerSubcommandsAreSorted(t *testing.T) {
|
|
if !sort.IsSorted(byName(dockerCommands)) {
|
|
t.Fatal("Docker subcommands are not in sorted order")
|
|
}
|
|
}
|