R. Quast

Results 3 comments of R. Quast

Feel free to rename methods and extract constants as you like. I regard it as good programming style to compare variables of the same type only, but you may care...

Well, the API documentation states that values are clipped. But they are not. The purpose of `setSample(x, y, double value)` is to encode the `value` into the underlying data type,...

@Test public void testCasts() { // all these tests fail, prior clipping is needed Assert.assertEquals(Short.MAX_VALUE, (short) 1.0E6); Assert.assertEquals(Short.MIN_VALUE, (short) -1.0E6); Assert.assertEquals(Byte.MAX_VALUE, (byte) 1.0E3); Assert.assertEquals(Byte.MIN_VALUE, (byte) -1.0E3); // these tests do...