Commit 06fd7cf3 authored by yeya24's avatar yeya24
Browse files

add tomb interval testcase


Signed-off-by: default avataryeya24 <yb532204897@gmail.com>
parent 1637ad27
......@@ -118,6 +118,11 @@ func TestAddingNewIntervals(t *testing.T) {
new: Interval{11, 14},
exp: Intervals{{5, 20}, {25, 30}},
},
{
exist: Intervals{{5, 10}, {12, 20}, {25, 30}},
new: Interval{1, 3},
exp: Intervals{{1, 3}, {5, 10}, {12, 20}, {25, 30}},
},
}
for _, c := range cases {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment