assertThat(msv.get(10), equalTo(Math.PI));
}
@Test
public void testFromBiggerArray() {
MutableIdIndexMapping map = new MutableIdIndexMapping();
map.internId(42);
map.internId(39);
MutableSparseVector msv =
Vectors.fromArray(map, new double[]{Math.PI, Math.E});
assertThat(msv.size(), equalTo(2));
assertThat(msv.get(42), equalTo(Math.PI));
assertThat(msv.get(39), equalTo(Math.E));