]> git.giacomolli.uk - onechat/blobdiff - prompt_test.go
Send the compaction view in blocks of four lines
[onechat] / prompt_test.go
index 598686edff944aff9da59c5ac91c36003dfdf446..3e66fde72cd3e2d2cf2b8f4c4cac54633ad584e4 100644 (file)
@@ -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) {