diff options
Diffstat (limited to 'internal/lsp/handlers_helpers_test.go')
| -rw-r--r-- | internal/lsp/handlers_helpers_test.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/internal/lsp/handlers_helpers_test.go b/internal/lsp/handlers_helpers_test.go index 2bd677e..8a0231a 100644 --- a/internal/lsp/handlers_helpers_test.go +++ b/internal/lsp/handlers_helpers_test.go @@ -10,14 +10,14 @@ func TestHasDoubleSemicolonTrigger(t *testing.T) { line string want bool }{ - {">>todo> remove this", true}, - {"prefix >>x> suffix", true}, - {">> spaced >", false}, + {">>!todo> remove this", true}, + {"prefix >>!x> suffix", true}, + {">>! spaced >", false}, {"no markers", false}, - {">>x > space before close", false}, + {">>!x > space before close", false}, } for _, tc := range cases { - got := hasDoubleOpenTrigger(tc.line, '>', '>') + got := hasDoubleOpenTrigger(tc.line, ">!", '>', '>') if got != tc.want { t.Fatalf("hasDoubleOpenTrigger(%q)=%v want %v", tc.line, got, tc.want) } @@ -25,13 +25,13 @@ func TestHasDoubleSemicolonTrigger(t *testing.T) { } func TestCollectSemicolonMarkers(t *testing.T) { - line := "keep >ok> this and >another> that" - edits := collectSemicolonMarkers(line, 7, '>', '>') + line := "keep >!ok> this and >!another> that" + edits := collectSemicolonMarkers(line, 7, ">!", '>', '>') if len(edits) != 2 { t.Fatalf("expected 2 edits, got %d", len(edits)) } // Validate the first edit aligns with ;ok; - start := strings.Index(line, ">ok>") + start := strings.Index(line, ">!ok>") if start < 0 { t.Fatalf("test setup: missing ;ok;") } @@ -41,8 +41,8 @@ func TestCollectSemicolonMarkers(t *testing.T) { } func TestPromptRemovalEditsForLine_WholeLine(t *testing.T) { - line := ">>todo> remove this whole line" - edits := promptRemovalEditsForLine(line, 3, '>', '>') + line := ">>!todo> remove this whole line" + edits := promptRemovalEditsForLine(line, 3, ">!", '>', '>') if len(edits) != 1 { t.Fatalf("expected 1 whole-line edit, got %d", len(edits)) } |
