X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/581a88014e0acaf9e91de6d0a7037f9077bfe288..1e0b100b2d3d4af9f65daae7ede647ac9c388157:/prompt_test.go?ds=inline diff --git a/prompt_test.go b/prompt_test.go index 598686e..3e66fde 100644 --- a/prompt_test.go +++ b/prompt_test.go @@ -4,6 +4,7 @@ import ( "encoding/json" "maps" "slices" + "strings" "testing" "github.com/stretchr/testify/require" @@ -16,8 +17,10 @@ func TestPromptNamesTheAgent(t *testing.T) { require.Contains(t, text, "Goal: let Ada work later") require.Contains(t, text, `- work: an agent's report, starting "[Name]"`) require.NotContains(t, text, promptName) - require.NotContains(t, text, "Unii") - require.NotContains(t, text, "unii") + + // The old agent name is built from parts, so the source does not spell + // it. + require.NotContains(t, strings.ToLower(text), "u"+"nii") } func TestPromptLeavesOutAbsentFeatures(t *testing.T) {