tile38/core/commands_test.go

23 lines
319 B
Go
Raw Normal View History

2016-03-05 02:08:16 +03:00
package core
import (
"fmt"
"sort"
"testing"
)
func TestCommands(t *testing.T) {
var names []string
for name := range Commands {
names = append(names, name)
}
sort.Strings(names)
for _, name := range names {
cmd := Commands[name]
if cmd.Group == "server" {
fmt.Printf("%v\n", cmd.String())
}
}
}