Merge pull request #6559 from yeya24/tomb-test

Add a tomb interval test case
This commit is contained in:
Ganesh Vernekar 2020-01-16 11:42:28 +05:30 committed by GitHub
commit bc42cf6806
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {