Apache Commons logo Apache Commons Numbers

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
152 0 0 0 100% 0.822

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.apache.commons.numbers.fraction 152 0 0 0 100% 0.822

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.apache.commons.numbers.fraction

Class Tests Errors Failures Skipped Success Rate Time
GeneralizedContinuedFractionTest 50 0 0 0 100% 0.158
ContinuedFractionTest 11 0 0 0 100% 0.01
CommonsLangPortedFractionTest 15 0 0 0 100% 0.063
UserGuideTest 9 0 0 0 100% 0.01
BigFractionTest 37 0 0 0 100% 0.548
FractionTest 30 0 0 0 100% 0.033

Test Cases

[Summary] [Package List] [Test Cases]

GeneralizedContinuedFractionTest

testSimpleContinuedFraction(double, String)[1] 0.02
testSimpleContinuedFraction(double, String)[2] 0.001
testSimpleContinuedFraction(double, String)[3] 0
testSimpleContinuedFraction(double, String)[4] 0.001
testGoldenRatioAInvalidEpsilon(double)[1] 0
testGoldenRatioAInvalidEpsilon(double)[2] 0.001
testGoldenRatioAInvalidEpsilon(double)[3] 0
testGoldenRatioAInvalidEpsilon(double)[4] 0.001
testGoldenRatioAInvalidEpsilon(double)[5] 0
testNaNThrowsA 0.001
testNaNThrowsB 0
testTwoIterations 0
testBaseE(double)[1] 0.001
testBaseE(double)[2] 0.001
testTanX2(double, double)[1] 0.001
testTanX2(double, double)[2] 0.001
testTanX2(double, double)[3] 0.001
testTanX(double, double)[1] 0
testTanX(double, double)[2] 0.001
testTanX(double, double)[3] 0.001
testTanX(double, double)[4] 0
testTanX(double, double)[5] 0.001
testTanX(double, double)[6] 0.001
testTanX(double, double)[7] 0.001
testTanX(double, double)[8] 0
testTanX(double, double)[9] 0.001
testTanX(double, double)[10] 0.001
testRelativeErrorAssumptions 0
testMaxIterationsThrowsA 0.002
testMaxIterationsThrowsB 0.001
testOneIteration 0
testGoldenRatioBInvalidEpsilon(double)[1] 0
testGoldenRatioBInvalidEpsilon(double)[2] 0.001
testGoldenRatioBInvalidEpsilon(double)[3] 0.001
testGoldenRatioBInvalidEpsilon(double)[4] 0.001
testGoldenRatioBInvalidEpsilon(double)[5] 0
test0Over93 0
testGoldenRatioA(double)[1] 0.001
testGoldenRatioA(double)[2] 0.001
testGoldenRatioB(double)[1] 0.001
testGoldenRatioB(double)[2] 0
testGoldenRatioC(double)[1] 0
testGoldenRatioC(double)[2] 0
test415Over93 0
testInfThrowsA 0.001
testInfThrowsB 0
testZeroThrowsA 0.002
testZeroThrowsB 0.001
test43Over93 0
testCloseToZeroB0 0

ContinuedFractionTest

testMaxIterationsThrows 0.001
testTwoIterations 0.001
testNaNThrows 0.001
testOneIteration 0
testGoldenRatioEpsilonZero(double)[1] 0
testGoldenRatioEpsilonZero(double)[2] 0
testGoldenRatioEpsilonZero(double)[3] 0
test415Over93 0
testInfThrows 0.001
testGoldenRatioReciprocal 0
testGoldenRatio 0

CommonsLangPortedFractionTest

testReducedFactory_int_int 0.001
testAbs 0.001
testAdd 0.002
testPow 0.001
testSubtract 0.001
testToString 0
testCompareTo 0
testFactory_double 0.049
testConstants 0
testHashCode 0
testDivide 0.001
testEquals 0
testMultiply 0.001
testNegate 0
testFactory_int_int 0

UserGuideTest

testContinuedFraction1 0.001
testBigFraction1 0
testFraction1 0.003
testFraction2 0.001
testFraction3 0
testFraction4 0.001
testGeneralizedContinuedFraction1 0.001
testGeneralizedContinuedFraction2 0
testGeneralizedContinuedFraction3 0

BigFractionTest

testConstructorZero 0.04
testDoubleValueForLargeNumeratorAndSmallDenominator 0.004
testFloatValueForLargeNumeratorAndDenominator 0.002
testFloatValue 0.001
testAbs 0.004
testAdd 0.002
testPow 0.318
testDoubleConstructorOverflow 0.003
testSubtract 0.001
testParse 0.001
testNumbers150 0.099
testDoubleValueForInfinities 0.001
testToString 0
testReciprocal 0.001
testDoubleValueForSubnormalNumbers 0.001
testCompareTo 0
testDoubleConstructorGoldenRatioThrows 0.001
testDoubleConstructorWithMaxDenominatorOverFlow 0.001
testDoubleConstructor 0.001
testBigDecimalValue 0.001
testMath340 0
testDoubleValueForLargeNumeratorAndDenominator 0.001
testLongValue 0.001
testFloatValueForLargeNumeratorAndSmallDenominator 0.001
testIntValue 0
testDivide 0.001
testMultiply 0.001
testEqualsAndHashCode 0.002
testNegate 0.001
testAdditiveNeutral 0
testMultiplicativeNeutral 0
testSerial 0.013
testDoubleConstructorThrows 0.002
testDoubleConstructorWithEpsilonLimit 0.001
testDoubleConstructorWithMaxDenominator 0.001
testDoubleValue 0.001
testConstructor 0.001

FractionTest

testConstructorZero 0
testFloatValue 0
testAbs 0.001
testAdd 0.001
testPow 0.001
testDoubleConstructorOverflow 0.001
testSubtract 0.001
testParse 0.001
testNumbers150 0.001
testToString 0
testReciprocal 0
testCompareTo 0.001
testDoubleConstructorGoldenRatioThrows 0.001
testDoubleConstructorWithMaxDenominatorOverFlow 0.001
testDoubleConstructor 0.001
testLongValue 0.001
testMath1261 0
testIntValue 0
testDivide 0.002
testMultiply 0.001
testEqualsAndHashCode 0
testNegate 0
testAdditiveNeutral 0.001
testMultiplicativeNeutral 0
testSerial 0.002
testDoubleConstructorThrows 0.002
testDoubleConstructorWithEpsilonLimit 0.001
testDoubleConstructorWithMaxDenominator 0.001
testDoubleValue 0.001
testConstructor 0.001