X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/47f69638bc96100f2e446f63c7c3689023156e64..bd7da3557dc7a17020931f5a49ed5007fa81a645:/stop_test.go diff --git a/stop_test.go b/stop_test.go index 1f87bea..82ae795 100644 --- a/stop_test.go +++ b/stop_test.go @@ -14,25 +14,25 @@ func TestStopNameReadsTheNameOfASubagent(t *testing.T) { agent string }{ { - name: "a name after the command", + name: "reads the name after the stop command", line: " /stop GreenOtter ", found: true, agent: "GreenOtter", }, { - name: "the command alone", + name: "finds no subagent name after the bare command", line: "/stop", }, { - name: "the command with spaces only", + name: "finds no subagent name in trailing spaces", line: "/stop ", }, { - name: "a word that starts with the command", + name: "rejects a command joined to its name", line: "/stopGreenOtter", }, { - name: "a message", + name: "leaves a mention of the command as text", line: "please /stop GreenOtter", }, }