github.com/vincentwoo/docker@v0.7.3-0.20160116130405-82401a4b13c0/docker/flags_test.go (about) 1 package main 2 3 import ( 4 "sort" 5 "testing" 6 ) 7 8 // Tests if the subcommands of docker are sorted 9 func TestDockerSubcommandsAreSorted(t *testing.T) { 10 if !sort.IsSorted(byName(dockerCommands)) { 11 t.Fatal("Docker subcommands are not in sorted order") 12 } 13 }