diff options
| author | Paul Buetow <paul@buetow.org> | 2025-09-19 22:52:48 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-09-19 22:52:48 +0300 |
| commit | eb72b06fe8e62cb77af73f6dc558d384a5a5fe80 (patch) | |
| tree | efeb1165b9fbcb69a4ee675dba7bdc8c28fee3aa /internal/lsp/helpers_more_test.go | |
| parent | acc400768153a7bfda1413f15579c9455b877c87 (diff) | |
fix
Diffstat (limited to 'internal/lsp/helpers_more_test.go')
| -rw-r--r-- | internal/lsp/helpers_more_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/lsp/helpers_more_test.go b/internal/lsp/helpers_more_test.go index 160f91c..287aa9d 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") } @@ -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") } } |
