added boundary check to TestDatabase_SeriesIDsIntersect

pull/1354/head
djherbis 2015-01-23 21:39:26 -05:00
parent ea6a87466e
commit 4132e91f9d
1 changed files with 7 additions and 0 deletions

View File

@ -545,6 +545,13 @@ func TestDatabase_SeriesIDsIntersect(t *testing.T) {
right: []uint32{uint32(1), uint32(3), uint32(4), uint32(7)},
},
// both sides same size, right boundary checked.
{
expected: []uint32{},
left: []uint32{uint32(2)},
right: []uint32{uint32(1)},
},
// left side bigger
{
expected: []uint32{uint32(2)},