@@ -0,0 +1,1562 @@
+package fm.last.commons.kyoto;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collection;%0Aimport java.util.List;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.Parameterized;%0Aimport org.junit.runners.Parameterized.Parameters;%0A%0A@RunWith(Parameterized.class)%0Apublic class FixedPointTest %7B%0A  private static final double ERROR_MARGIN = 0.000000000000001d;%0A%0A  private static final byte%5B%5D _10_0001 = new byte%5B%5D %7B 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 23, 72, 118, -25, -1 %7D;%0A  private static final byte%5B%5D __1 = new byte%5B%5D %7B -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0 %7D;%0A  private static final byte%5B%5D __1_1 = new byte%5B%5D %7B -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -91, 12, -17, -123, -64, 0 %7D;%0A  private static final byte%5B%5D _1_1 = new byte%5B%5D %7B 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 90, -13, 16, 122, 64, 0 %7D;%0A%0A  private byte%5B%5D bytes;%0A  private double expected;%0A%0A  @Parameters%0A  public static Collection%3CObject%5B%5D%3E data() %7B%0A    List%3CObject%5B%5D%3E data = new ArrayList%3CObject%5B%5D%3E();%0A    data.add(new Object%5B%5D %7B 10.0001d, _10_0001 %7D);%0A    data.add(new Object%5B%5D %7B -1.0d, __1 %7D);%0A    data.add(new Object%5B%5D %7B -1.1d, __1_1 %7D);%0A    data.add(new Object%5B%5D %7B 1.1d, _1_1 %7D);%0A    return data;%0A  %7D%0A%0A  public FixedPointTest(double expected, byte%5B%5D bytes) %7B%0A    this.expected = expected;%0A    this.bytes = bytes;%0A  %7D%0A%0A  @Test%0A  public void testFixedPointToDouble() %7B%0A    double decodedValue = FixedPoint.toDouble(bytes);%0A    assertEquals(%22Expected to get %22 + expected, expected, decodedValue, ERROR_MARGIN);%0A  %7D%0A%7D%0A

Add unit test for FixedPoint