From 4132e91f9d9741c0ff10827fb0f65d349cd095b0 Mon Sep 17 00:00:00 2001 From: djherbis Date: Fri, 23 Jan 2015 21:39:26 -0500 Subject: [PATCH] added boundary check to TestDatabase_SeriesIDsIntersect --- database_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/database_test.go b/database_test.go index 135d3ea25d..408014729a 100644 --- a/database_test.go +++ b/database_test.go @@ -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)},