check = function(expected, ranges) {
    var set = new lf.index.SingleKeyRangeSet();
    set.add(ranges);
    assertArrayEquals(expected, set.getValues());
  }
@param {!Array<!lf.index.SingleKeyRange>} expected
@param {!Array<!lf.index.SingleKeyRange>} ranges