PHP 클래스 Moontoast\Math\BigNumberTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: moontoast/math

공개 메소드들

메소드 설명
testAbs ( )
testAdd ( )
testBaseConvert ( )
testCeil ( )
testCompareTo ( )
testConstruct ( )
testConvertFromBase10 ( )
testConvertFromBase10ExceptionBaseGreaterThan36 ( )
testConvertFromBase10ExceptionBaseLessThan2 ( )
testConvertFromBase10NegativeNumbers ( )
testConvertToBase ( )
testConvertToBase10 ( )
testConvertToBase10ExceptionBaseGreaterThan36 ( )
testConvertToBase10ExceptionBaseLessThan2 ( )
testDecrement ( )
testDivide ( )
testDivideByZero ( )
testFilterNumber ( )
testFloor ( )
testGetScale ( )
testGetValue ( )
testIncrement ( )
testIsEqualTo ( )
testIsGreaterThan ( )
testIsGreaterThanOrEqualTo ( )
testIsLessThan ( )
testIsLessThanOrEqualTo ( )
testIsNegative ( )
testIsPositive ( )
testMod ( )
testModDivisionByZero ( )
testMultiply ( )
testNegate ( )
testNegativeZero ( ) Tests the possibility of a "negative" string zero, i.e. "-0.000"
testPow ( )
testPowMod ( )
testPowModDivisionByZero ( )
testRound ( )
testSetDefaultScale ( )
testSetScale ( )
testSetValue ( )
testSetValueWithScale ( )
testShiftLeft ( )
testShiftRight ( )
testSignum ( )
testSqrt ( )
testSubtract ( )
testToString ( )

보호된 메소드들

메소드 설명
setUp ( )

메소드 상세

setUp() 보호된 메소드

protected setUp ( )

testAbs() 공개 메소드

public testAbs ( )

testAdd() 공개 메소드

public testAdd ( )

testBaseConvert() 공개 메소드

public testBaseConvert ( )

testCeil() 공개 메소드

public testCeil ( )

testCompareTo() 공개 메소드

public testCompareTo ( )

testConstruct() 공개 메소드

public testConstruct ( )

testConvertFromBase10() 공개 메소드

testConvertFromBase10ExceptionBaseGreaterThan36() 공개 메소드

testConvertFromBase10ExceptionBaseLessThan2() 공개 메소드

testConvertFromBase10NegativeNumbers() 공개 메소드

testConvertToBase() 공개 메소드

public testConvertToBase ( )

testConvertToBase10() 공개 메소드

public testConvertToBase10 ( )

testConvertToBase10ExceptionBaseGreaterThan36() 공개 메소드

testConvertToBase10ExceptionBaseLessThan2() 공개 메소드

testDecrement() 공개 메소드

public testDecrement ( )

testDivide() 공개 메소드

public testDivide ( )

testDivideByZero() 공개 메소드

public testDivideByZero ( )

testFilterNumber() 공개 메소드

public testFilterNumber ( )

testFloor() 공개 메소드

public testFloor ( )

testGetScale() 공개 메소드

public testGetScale ( )

testGetValue() 공개 메소드

public testGetValue ( )

testIncrement() 공개 메소드

public testIncrement ( )

testIsEqualTo() 공개 메소드

public testIsEqualTo ( )

testIsGreaterThan() 공개 메소드

public testIsGreaterThan ( )

testIsGreaterThanOrEqualTo() 공개 메소드

testIsLessThan() 공개 메소드

public testIsLessThan ( )

testIsLessThanOrEqualTo() 공개 메소드

testIsNegative() 공개 메소드

public testIsNegative ( )

testIsPositive() 공개 메소드

public testIsPositive ( )

testMod() 공개 메소드

public testMod ( )

testModDivisionByZero() 공개 메소드

testMultiply() 공개 메소드

public testMultiply ( )

testNegate() 공개 메소드

public testNegate ( )

testNegativeZero() 공개 메소드

The sign of -0 is still a negative sign. This is ultimately calculated by bccomp(), according to which, when -0.000 is compared to 0.000, it will return a -1, meaning -0.000 is less than 0.000, but -0 compared to 0 will return a 0, meaning the two are equal. This is odd, but it is the expected behavior.
public testNegativeZero ( )

testPow() 공개 메소드

public testPow ( )

testPowMod() 공개 메소드

public testPowMod ( )

testPowModDivisionByZero() 공개 메소드

testRound() 공개 메소드

public testRound ( )

testSetDefaultScale() 공개 메소드

public testSetDefaultScale ( )

testSetScale() 공개 메소드

public testSetScale ( )

testSetValue() 공개 메소드

public testSetValue ( )

testSetValueWithScale() 공개 메소드

testShiftLeft() 공개 메소드

public testShiftLeft ( )

testShiftRight() 공개 메소드

public testShiftRight ( )

testSignum() 공개 메소드

public testSignum ( )

testSqrt() 공개 메소드

public testSqrt ( )

testSubtract() 공개 메소드

public testSubtract ( )

testToString() 공개 메소드

public testToString ( )