Skip to content

Commit

Permalink
test(lsp): max char selects line (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrinberg committed Nov 16, 2022
1 parent 150a959 commit ded4b06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lsp/test/text_document_tests.ml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,8 @@ let%expect_test "replace first line" =
let range = tuple_range (0, 0) (1, 0) in
test "foo\nbar\n" range ~change:"baz\n";
[%expect {| baz\nbar\n |}]

let%expect_test "beyond max char" =
let range = tuple_range (0, 0) (0, 100) in
test "foo\nbar\n" range ~change:"baz\n";
[%expect {| baz\n |}]

0 comments on commit ded4b06

Please sign in to comment.