diff options
Diffstat (limited to 'internal/lsp/helpers_more_test.go')
| -rw-r--r-- | internal/lsp/helpers_more_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/lsp/helpers_more_test.go b/internal/lsp/helpers_more_test.go index 287aa9d..683a69c 100644 --- a/internal/lsp/helpers_more_test.go +++ b/internal/lsp/helpers_more_test.go @@ -25,10 +25,10 @@ func TestLeadingAndApplyIndent(t *testing.T) { } func TestFindStrictInlineTag(t *testing.T) { - if _, _, _, ok := findStrictInlineTag(">do this> next", '>', '>'); !ok { + if _, _, _, ok := findStrictInlineTag(">!do this> next", ">!", '>', '>'); !ok { t.Fatalf("expected strict tag") } - if _, _, _, ok := findStrictInlineTag("> spaced >", '>', '>'); ok { + if _, _, _, ok := findStrictInlineTag(">! spaced >", ">!", '>', '>'); ok { t.Fatalf("should ignore spaced tag") } } @@ -81,11 +81,11 @@ func TestRangesOverlapAndOrder(t *testing.T) { } func TestPromptRemovalEditsForLine(t *testing.T) { - edits := promptRemovalEditsForLine(">>do thing>", 3, '>', '>') + edits := promptRemovalEditsForLine(">>!do thing>", 3, ">!", '>', '>') if len(edits) != 1 || edits[0].Range.Start.Line != 3 { t.Fatalf("expected full-line removal for double-semicolon") } - edits2 := promptRemovalEditsForLine(">act> and >b>", 1, '>', '>') + edits2 := promptRemovalEditsForLine(">!act> and >!b>", 1, ">!", '>', '>') if len(edits2) == 0 { t.Fatalf("expected edits to remove strict markers") } @@ -94,7 +94,7 @@ func TestPromptRemovalEditsForLine(t *testing.T) { func TestCollectPromptRemovalEdits_MultiLine(t *testing.T) { s := newTestServer() uri := "file:///t.go" - s.setDocument(uri, "a\n>do> x\n>>wipe>\nend") + s.setDocument(uri, "a\n>!do> x\n>>!wipe>\nend") edits := s.collectPromptRemovalEdits(uri) if len(edits) < 2 { t.Fatalf("expected >=2 edits, got %d", len(edits)) @@ -143,10 +143,10 @@ func TestComputeTextEditAndFilter(t *testing.T) { } func TestIsBareDoubleOpen(t *testing.T) { - if !isBareDoubleOpen(">> ", '>', '>') { + if !isBareDoubleOpen(">>! ", ">!", '>', '>') { t.Fatalf("expected true") } - if isBareDoubleOpen(">>x>", '>', '>') { + if isBareDoubleOpen(">>!x>", ">!", '>', '>') { t.Fatalf("expected false for content form") } } |
