Files
codegirl-games/agentbox/cmd/agentbox/main_test.go
T
2026-08-18 06:03:59 +00:00

18 lines
373 B
Go

package main
import "testing"
func TestParseRunOptionsAllowsFlagsAfterPath(t *testing.T) {
options, err := parseRunOptions([]string{
"./game", "--task", "move right", "--max-steps=7",
})
if err != nil {
t.Fatal(err)
}
if options.applicationPath != "./game" ||
options.task != "move right" ||
options.maxSteps != 7 {
t.Fatalf("options = %#v", options)
}
}