Skip to content

Commit

Permalink
Correct broken unit test.
Browse files Browse the repository at this point in the history
Change of behaviour: the executed range now starts at the end of
the previous sentence.
  • Loading branch information
rtetley committed Feb 16, 2024
1 parent ca4e475 commit 5e0dbb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion language-server/tests/dm_tests.ml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ let%test_unit "exec.require_error" =
let st = handle_events todo st in
let ranges = (DocumentManager.executed_ranges st).processed in
let positions = Stdlib.List.map (fun s -> s.Lsp.Types.Range.start.character) ranges in
[%test_eq: int list] positions [ 19 ]
[%test_eq: int list] positions [ 18 ]

let%test_unit "step_forward.delete_observe_id" =
let st, init_events = init_test_doc ~text:"Definition x := 3. Lemma foo : x = 3." in
Expand Down

0 comments on commit 5e0dbb6

Please sign in to comment.