Examples of parseDouble()


Examples of htsjdk.samtools.util.FormatUtil.parseDouble()

                for (int i = 0; i < parts.length; i++) {
                    Assert.assertEquals(parts, testFile1Data[index]);
                }
            }
            else {
                Assert.assertEquals(testFile1Data[index][0], format.parseDouble(parts[0]));
                Assert.assertEquals(testFile1Data[index][1], format.parseInt(parts[1]));
                Assert.assertEquals(testFile1Data[index][2], format.parseInt(parts[2]));
                Assert.assertEquals(testFile1Data[index][3], format.parseDouble(parts[3]));
            }
            index++;
View Full Code Here

Examples of htsjdk.samtools.util.FormatUtil.parseDouble()

            }
            else {
                Assert.assertEquals(testFile1Data[index][0], format.parseDouble(parts[0]));
                Assert.assertEquals(testFile1Data[index][1], format.parseInt(parts[1]));
                Assert.assertEquals(testFile1Data[index][2], format.parseInt(parts[2]));
                Assert.assertEquals(testFile1Data[index][3], format.parseDouble(parts[3]));
            }
            index++;
        }
    }
View Full Code Here

Examples of htsjdk.samtools.util.FormatUtil.parseDouble()

                for (int i = 0; i < parts.length; i++) {
                    Assert.assertEquals(parts, testFile1Data[indexIntoTestData]);
                }
            }
            else {
                Assert.assertEquals(testFile1Data[indexIntoTestData][0], format.parseDouble(parts[0]));
                Assert.assertEquals(testFile1Data[indexIntoTestData][1], format.parseInt(parts[1]));
                Assert.assertEquals(testFile1Data[indexIntoTestData][2], format.parseInt(parts[2]));
                Assert.assertEquals(testFile1Data[indexIntoTestData][3], format.parseDouble(parts[3]));
            }
            index++;
View Full Code Here

Examples of htsjdk.samtools.util.FormatUtil.parseDouble()

            }
            else {
                Assert.assertEquals(testFile1Data[indexIntoTestData][0], format.parseDouble(parts[0]));
                Assert.assertEquals(testFile1Data[indexIntoTestData][1], format.parseInt(parts[1]));
                Assert.assertEquals(testFile1Data[indexIntoTestData][2], format.parseInt(parts[2]));
                Assert.assertEquals(testFile1Data[indexIntoTestData][3], format.parseDouble(parts[3]));
            }
            index++;
        }
    }
View Full Code Here

Examples of htsjdk.samtools.util.FormatUtil.parseDouble()

        expectedMetrics.READ_PAIR_DUPLICATES = expectedMetrics.READ_PAIR_DUPLICATES / 2;
        expectedMetrics.READ_PAIRS_EXAMINED = expectedMetrics.READ_PAIRS_EXAMINED / 2;
        expectedMetrics.calculateDerivedMetrics();

        // Have to run this Double value through the same format/parsing operations as during a file write/read
        expectedMetrics.PERCENT_DUPLICATION = formatter.parseDouble(formatter.format(expectedMetrics.PERCENT_DUPLICATION));
    }

    public void setExpectedOpticalDuplicate(final int expectedOpticalDuplicatePairs) {
        expectedMetrics.READ_PAIR_OPTICAL_DUPLICATES = expectedOpticalDuplicatePairs;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.impl.XSDDataTypeConverter.parseDouble()

    public void testConvert() throws Exception {
        XSDDataTypeConverter c = new XSDDataTypeConverter();
        assertEquals("123", c.parseAnySimpleType(c.printAnySimpleType("123")));
        assertEquals(true, c.parseBoolean(c.printBoolean(true)));
        assertEquals(false, c.parseBoolean(c.printBoolean(false)));
        assertEquals(123.0, c.parseDouble(c.printDouble(123.0)));
        assertEquals(123.0f, c.parseFloat(c.printFloat(123.0f)));
        assertEquals(64, c.parseByte(c.printByte((byte)64)));
        assertEquals(123, c.parseInt(c.printInt(123)));
        assertEquals(new BigInteger("123456"), c.parseInteger(c.printInteger(new BigInteger("123456"))));
        assertEquals(123456L, c.parseLong(c.printLong(123456L)));
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.impl.XSDDataTypeConverter.parseDouble()

    public void testConvert() throws Exception {
        XSDDataTypeConverter c = new XSDDataTypeConverter();
        assertEquals("123", c.parseAnySimpleType(c.printAnySimpleType("123")));
        assertEquals(true, c.parseBoolean(c.printBoolean(true)));
        assertEquals(false, c.parseBoolean(c.printBoolean(false)));
        assertEquals(123.0, c.parseDouble(c.printDouble(123.0)));
        assertEquals(123.0f, c.parseFloat(c.printFloat(123.0f)));
        assertEquals(64, c.parseByte(c.printByte((byte)64)));
        assertEquals(123, c.parseInt(c.printInt(123)));
        assertEquals(new BigInteger("123456"), c.parseInteger(c.printInteger(new BigInteger("123456"))));
        assertEquals(123456L, c.parseLong(c.printLong(123456L)));
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.impl.XSDDataTypeConverter.parseDouble()

    public void testConvert() throws Exception {
        XSDDataTypeConverter c = new XSDDataTypeConverter();
        assertEquals("123", c.parseAnySimpleType(c.printAnySimpleType("123")));
        assertEquals(true, c.parseBoolean(c.printBoolean(true)));
        assertEquals(false, c.parseBoolean(c.printBoolean(false)));
        assertEquals(123.0, c.parseDouble(c.printDouble(123.0)), 0);
        assertEquals(123.0f, c.parseFloat(c.printFloat(123.0f)), 0);
        assertEquals(64, c.parseByte(c.printByte((byte)64)));
        assertEquals(123, c.parseInt(c.printInt(123)));
        assertEquals(new BigInteger("123456"), c.parseInteger(c.printInteger(new BigInteger("123456"))));
        assertEquals(123456L, c.parseLong(c.printLong(123456L)));
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.impl.XSDDataTypeConverter.parseDouble()

    public void testConvert() throws Exception {
        XSDDataTypeConverter c = new XSDDataTypeConverter();
        assertEquals("123", c.parseAnySimpleType(c.printAnySimpleType("123")));
        assertEquals(true, c.parseBoolean(c.printBoolean(true)));
        assertEquals(false, c.parseBoolean(c.printBoolean(false)));
        assertEquals(123.0, c.parseDouble(c.printDouble(123.0)));
        assertEquals(123.0f, c.parseFloat(c.printFloat(123.0f)));
        assertEquals(64, c.parseByte(c.printByte((byte)64)));
        assertEquals(123, c.parseInt(c.printInt(123)));
        assertEquals(new BigInteger("123456"), c.parseInteger(c.printInteger(new BigInteger("123456"))));
        assertEquals(123456L, c.parseLong(c.printLong(123456L)));
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.impl.XSDDataTypeConverter.parseDouble()

    public void testConvert() throws Exception {
        XSDDataTypeConverter c = new XSDDataTypeConverter();
        assertEquals("123", c.parseAnySimpleType(c.printAnySimpleType("123")));
        assertEquals(true, c.parseBoolean(c.printBoolean(true)));
        assertEquals(false, c.parseBoolean(c.printBoolean(false)));
        assertEquals(123.0, c.parseDouble(c.printDouble(123.0)), 0);
        assertEquals(123.0f, c.parseFloat(c.printFloat(123.0f)), 0);
        assertEquals(64, c.parseByte(c.printByte((byte)64)));
        assertEquals(123, c.parseInt(c.printInt(123)));
        assertEquals(new BigInteger("123456"), c.parseInteger(c.printInteger(new BigInteger("123456"))));
        assertEquals(123456L, c.parseLong(c.printLong(123456L)));
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.