C# Class System.Numerics.Tests.logTest

Show file Open project: dotnet/corefx

Private Methods

Method Description
ApproxEqual ( double value1, double value2 ) : bool
GetRandomByteArray ( Random random ) : byte[]
GetRandomByteArray ( Random random, int size ) : byte[]
GetRandomNegByteArray ( Random random, int size ) : Byte[]
GetRandomPosByteArray ( Random random, int size ) : Byte[]
LargeValueLogTests ( int startShift, int bigShiftLoopLimit, int smallShift, int smallShiftLoopLimit = 1 ) : void

Test Log Method on Very Large BigInteger more than (1 << Int.MaxValue) by base 2 Tested BigInteger are: pow(2, startShift + smallLoopShift * [1..smallLoopLimit] + Int32.MaxValue * [1..bigLoopLimit]) Note: ToString() can not operate such large values VerifyLogString() can not operate such large values, Math.Log() can not operate such large values

Print ( byte bytes ) : String
RunLargeValueLogTests ( ) : void
RunLogTests ( ) : void
VerifyIdentityString ( string opstring1, string opstring2 ) : void
VerifyLogString ( string opstring ) : void