Package com.humaorie.dollar.ArrayWrapper

Examples of com.humaorie.dollar.ArrayWrapper.FloatArrayWrapper.toFloatArray()


    @Test
    public void unboxFloatArray() {
        final Float[] boxed = {42.0f};
        final float[] unboxed = {42};
        final FloatArrayWrapper arrayWrapper = new FloatArrayWrapper(boxed);
        Assert.assertArrayEquals(unboxed, arrayWrapper.toFloatArray(), 0.1f);
    }

    @Test
    public void unboxFloatArrayToDoubleArray() {
        final Float[] boxed = {42f};
View Full Code Here


    @Test
    public void unboxFloatArrayWithNulls() {
        final Float[] boxed = {null};
        final float[] unboxed = {0};
        final FloatArrayWrapper arrayWrapper = new FloatArrayWrapper(boxed);
        Assert.assertArrayEquals(unboxed, arrayWrapper.toFloatArray(), 0.1f);
    }

    @Test
    public void unboxDoubleArray() {
        final Double[] boxed = {42.0};
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.