]> git.giacomolli.uk - onechat/blobdiff - prompt_test.go
Separate multiline Go statements
[onechat] / prompt_test.go
index 888057f998e3513bcb62822b0e0348ce48c82bff..158784b9a34d8e0e6d5c2e8198346d4d9d0a8bac 100644 (file)
@@ -65,6 +65,7 @@ func TestPromptEndsWithTheInstructions(t *testing.T) {
        require.Contains(t, text, `Do the user's tasks yourself, with your tools, following the user's instructions
 at the end of this prompt: who they are, how their files are organized and how
 they want work done.`)
        require.Contains(t, text, `Do the user's tasks yourself, with your tools, following the user's instructions
 at the end of this prompt: who they are, how their files are organized and how
 they want work done.`)
+
        require.True(t, strings.HasSuffix(text, "\n\n# The user's instructions\n\nI am Lena. Keep replies short."))
 }
 
        require.True(t, strings.HasSuffix(text, "\n\n# The user's instructions\n\nI am Lena. Keep replies short."))
 }