package legal import ( "strings" "testing" ) func TestText_NonEmpty(t *testing.T) { got := Text() if len(got) < 500 { t.Fatalf("Text() too short: got %d bytes, want > 500", len(got)) } } func TestText_ContainsKeyPhrases(t *testing.T) { got := Text() for _, phrase := range []string{"CFAA", "Responsible Use", "Disclaimer"} { if !strings.Contains(got, phrase) { t.Errorf("Text() missing required phrase %q", phrase) } } }