tile38/core/commands_test.go

23 lines
319 B
Go

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())
}
}
}