assertEquals(3,v.get(1),0.000001);
assertEquals(20100,v.get(100),0.000001);
}
@Test public void testJoinedArraySubs() {
Vector v=Vector.of(0,1,2,3,4,5,6,7,8,9);
AVector j=v;
for (int i=0; i<10; i++) {
AVector sv=v.subVector(i, 1);
assertEquals(1,sv.length());
j=j.join(v.subVector(i, 1));
}
assertEquals(20,j.length());
assertEquals(JoinedArrayVector.class,j.getClass());
assertEquals(v,j.subVector(10, 10));
v.set(0,2.0);
assertEquals(2.0, j.get(10),0.0);
}