Add unit test for more than one slot

This commit is contained in:
martinsumner 2017-03-15 16:40:43 +00:00
parent c6d17b998e
commit dde37566b9

View file

@ -1703,11 +1703,14 @@ additional_range_test() ->
2 * ?NOLOOK_SLOTSIZE + Gap + 1), 2 * ?NOLOOK_SLOTSIZE + Gap + 1),
R4 = sst_getkvrange(P1, element(1, GapSKV), element(1, PastEKV), 2), R4 = sst_getkvrange(P1, element(1, GapSKV), element(1, PastEKV), 2),
?assertMatch(IK2, R4), ?assertMatch(IK2, R4),
R5 = sst_getkvrange(P1, SK, element(1, PastEKV), 2),
IKAll = IK1 ++ IK2,
?assertMatch(IKAll, R5),
% Testing at a slot end % Testing at a slot end
Slot1EK = element(1, lists:last(IK1)), Slot1EK = element(1, lists:last(IK1)),
R5 = sst_getkvrange(P1, SK, Slot1EK, 2), R6 = sst_getkvrange(P1, SK, Slot1EK, 2),
?assertMatch(IK1, R5). ?assertMatch(IK1, R6).