Skip to content

Commit 43b173a

Browse files
committed
add test for zero-width interval
1 parent b6f9392 commit 43b173a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test-units/analysis/overrides_interval_tree_test.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ let test_find ~input ~expected =
5454
----------e----------
5555
----d---- -----f-----
5656
---b--- --g-- --h--
57-
-a- -c- -i-
57+
-a- c -i-
5858
*)
5959
let tree =
6060
create_tree
6161
[ ((0, 1), "a");
6262
((0, 3), "b");
63-
((2, 3), "c");
63+
((2, 2), "c");
6464
((0, 4), "d");
6565
((0, 10), "e");
6666
((5, 10), "f");
@@ -103,7 +103,7 @@ let cases =
103103
test_find ~input:0 ~expected:(Some "a");
104104
test_find ~input:1 ~expected:(Some "a");
105105
test_find ~input:2 ~expected:(Some "c");
106-
test_find ~input:3 ~expected:(Some "c");
106+
test_find ~input:3 ~expected:(Some "b");
107107
test_find ~input:4 ~expected:(Some "d");
108108
test_find ~input:5 ~expected:(Some "g");
109109
test_find ~input:6 ~expected:(Some "g");

0 commit comments

Comments
 (0)