function check(expected, ranges0, ranges1) {
    var s0 = new lf.index.SingleKeyRangeSet(ranges0);
    var s1 = new lf.index.SingleKeyRangeSet(ranges1);
    var intersected = lf.index.SingleKeyRangeSet.intersect(s0, s1);
    assertTrue(new lf.index.SingleKeyRangeSet(expected).equals(intersected));
  }
@param {!Array<!lf.index.SingleKeyRange>} expected
@param {!Array<!lf.index.SingleKeyRange>} ranges0
@param {!Array<!lf.index.SingleKeyRange>} ranges1