(t *testing.T)
| 79 | } |
| 80 | |
| 81 | func TestIsNothingNew(t *testing.T) { |
| 82 | positives := []string{"NOTHING_NEW", "nothing_new", "Nothing New", "NOTHING-NEW", "N/A", "None", "NA", "NOTHING_NEW.", " none "} |
| 83 | for _, s := range positives { |
| 84 | if !isNothingNew(s) { |
| 85 | t.Errorf("isNothingNew(%q) should be true", s) |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | negatives := []string{"- Read main.go", "Some actual content", "NOTHING_NEW\n- but also this", ""} |
| 90 | for _, s := range negatives { |
| 91 | if isNothingNew(s) { |
| 92 | t.Errorf("isNothingNew(%q) should be false", s) |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | func TestParseMemoryResponse_LongtermNothingNew(t *testing.T) { |
| 98 | response := `## DAILY |
nothing calls this directly
no test coverage detected