28 lines
649 B
Go
28 lines
649 B
Go
package delegatedcontinuity
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestAttentionResponseProjectionAllowsDelegationContinuationOutcomes(t *testing.T) {
|
|
path := filepath.Join("..", "..", "database", "migrations", "026_continuity_attention_response_outcomes.sql")
|
|
content, err := os.ReadFile(path)
|
|
if err != nil {
|
|
t.Fatalf("read migration: %v", err)
|
|
}
|
|
sql := string(content)
|
|
for _, want := range []string{
|
|
"attention_items_response_projection_check",
|
|
"'CONTINUED'",
|
|
"'REJECTED'",
|
|
"'CLARIFICATION_NEEDED'",
|
|
} {
|
|
if !strings.Contains(sql, want) {
|
|
t.Fatalf("migration %s must contain %s", path, want)
|
|
}
|
|
}
|
|
}
|