返回 DeepSeek-Reasonix
instruction_test.go
根目录 / internal / instruction / instruction_test.go
1 package instruction
2
3 import (
4 "strings"
5 "testing"
6 )
7
8 func TestProjectCheckSectionsRemainModelContext(t *testing.T) {
9 for _, heading := range []string{"Reasonix host checks", "reasonix HOST checks", "Project verification"} {
10 body := "## " + heading + "\n- verify: go test ./...\nAlways inspect actual failures."
11 text := Block([]Document{{Path: "AGENTS.md", Scope: ScopeProject, Body: body}})
12 if !strings.Contains(text, body) {
13 t.Fatalf("project instruction text was dropped or rewritten: %s", text)
14 }
15 }
16 }
17
17 lines GO