@Test
public void testSet_int_float() {

    int idx = 2;
    float val = 0.3F;
    Tensor instance = new Tensor(5);
    float result = instance.set(idx, val);        
    float expResult = 0.3F;        
    assertEquals(expResult, result, 0.0);
}