aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/fiinha.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/fiinha.go b/tests/fiinha.go
index b733935..b7a4cf5 100644
--- a/tests/fiinha.go
+++ b/tests/fiinha.go
@@ -5787,6 +5787,16 @@ func test_runCommand() {
})
}
+func test_commands() {
+ g.TestStart("commands")
+
+ g.Testing("ensure map key and name are in sync", func() {
+ for key, command := range commands {
+ g.TAssertEqual(command.name, key)
+ }
+ })
+}
+
func dumpQueries() {
queries := []struct{name string; fn func(string) queryT}{
@@ -5888,4 +5898,5 @@ func MainTest() {
test_usage()
test_getopt()
test_runCommand()
+ test_commands()
}