Java Doc for BigIntegerOperateBitsTest.java in » Apache-Harmony-Java-SE » org-package » org » apache » harmony » tests » java » math » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Java Source Code / Java Documentation
1.
6.0 JDK Core
2.
6.0 JDK Modules
3.
6.0 JDK Modules com.sun
4.
6.0 JDK Modules com.sun.java
5.
6.0 JDK Modules sun
6.
6.0 JDK Platform
7.
Ajax
8.
Apache Harmony Java SE
9.
Aspect oriented
10.
Authentication Authorization
11.
Blogger System
12.
Build
13.
Byte Code
14.
Cache
15.
Chart
16.
Chat
17.
Code Analyzer
18.
Collaboration
19.
Content Management System
20.
Database Client
21.
Database DBMS
22.
Database JDBC Connection Pool
23.
Database ORM
24.
Development
25.
EJB Server geronimo
26.
EJB Server GlassFish
27.
EJB Server JBoss 4.2.1
28.
EJB Server resin 3.1.5
29.
ERP CRM Financial
30.
ESB
31.
Forum
32.
GIS
33.
Graphic Library
34.
Groupware
35.
HTML Parser
36.
IDE
37.
IDE Eclipse
38.
IDE Netbeans
39.
Installer
40.
Internationalization Localization
41.
Inversion of Control
42.
Issue Tracking
43.
J2EE
44.
JBoss
45.
JMS
46.
JMX
47.
Library
48.
Mail Clients
49.
Net
50.
Parser
51.
PDF
52.
Portal
53.
Profiler
54.
Project Management
55.
Report
56.
RSS RDF
57.
Rule Engine
58.
Science
59.
Scripting
60.
Search Engine
61.
Security
62.
Sevlet Container
63.
Source Control
64.
Swing Library
65.
Template Engine
66.
Test Coverage
67.
Testing
68.
UML
69.
Web Crawler
70.
Web Framework
71.
Web Mail
72.
Web Server
73.
Web Services
74.
Web Services apache cxf 2.0.1
75.
Web Services AXIS2
76.
Wiki Engine
77.
Workflow Engines
78.
XML
79.
XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation
»
Apache Harmony Java SE
»
org package
»
org.apache.harmony.tests.java.math
Source Cross Reference
Class Diagram
Java Document (Java Doc)
org.apache.harmony.tests.java.math
.BigIntegerOperateBitsTest
BigIntegerOperateBitsTest
public
class BigIntegerOperateBitsTest extends TestCase
(Code)
Class: java.math.BigInteger Methods: bitLength, shiftLeft, shiftRight, clearBit, flipBit, setBit, testBit
Method Summary
public
void
testBitCountNeg
()
bitCount() of a negative number.
public
void
testBitCountPos
()
bitCount() of a negative number.
public
void
testBitCountZero
()
bitCount() of zero.
public
void
testBitLengthNegative1
()
bitLength() of a negative number.
public
void
testBitLengthNegative2
()
public
void
testBitLengthNegative3
()
public
void
testBitLengthPositive1
()
bitLength() of a positive number.
public
void
testBitLengthPositive2
()
public
void
testBitLengthPositive3
()
public
void
testBitLengthZero
()
bitLength() of zero.
public
void
testClearBitException
()
public
void
testClearBitNegativeInside1
()
public
void
testClearBitNegativeInside2
()
public
void
testClearBitNegativeInside3
()
public
void
testClearBitNegativeInside4
()
clearBit(0) in the negative number of length 1 with all ones in bit representation.
public
void
testClearBitNegativeInside5
()
clearBit(0) in the negative number of length 2 with all ones in bit representation.
public
void
testClearBitNegativeOutside1
()
public
void
testClearBitNegativeOutside2
()
public
void
testClearBitPositiveInside1
()
public
void
testClearBitPositiveInside2
()
public
void
testClearBitPositiveInside3
()
public
void
testClearBitPositiveInside4
()
public
void
testClearBitPositiveInside5
()
public
void
testClearBitPositiveOutside1
()
public
void
testClearBitPositiveOutside2
()
public
void
testClearBitTopNegative
()
public
void
testClearBitZero
()
public
void
testClearBitZeroOutside1
()
public
void
testFlipBitException
()
public
void
testFlipBitLeftmostNegative
()
public
void
testFlipBitLeftmostPositive
()
public
void
testFlipBitNegativeInside1
()
public
void
testFlipBitNegativeInside2
()
public
void
testFlipBitNegativeInside3
()
public
void
testFlipBitNegativeInside4
()
flipBit(0) in the negative number of length 1 with all ones in bit representation.
public
void
testFlipBitNegativeInside5
()
flipBit(0) in the negative number of length 2 with all ones in bit representation.
public
void
testFlipBitNegativeOutside1
()
public
void
testFlipBitNegativeOutside2
()
public
void
testFlipBitPositiveInside1
()
public
void
testFlipBitPositiveInside2
()
public
void
testFlipBitPositiveOutside1
()
public
void
testFlipBitPositiveOutside2
()
public
void
testFlipBitZero
()
public
void
testFlipBitZeroOutside1
()
public
void
testFlipBitZeroOutside2
()
public
void
testSetBitBug1331
()
setBit: check the case when the number of bit to be set can be represented as n * 32 + 31, where n is an arbitrary integer.
public
void
testSetBitException
()
public
void
testSetBitLeftmostNegative
()
public
void
testSetBitNegativeInside1
()
public
void
testSetBitNegativeInside2
()
public
void
testSetBitNegativeInside3
()
public
void
testSetBitNegativeInside4
()
setBit(0) in the negative number of length 1 with all ones in bit representation.
public
void
testSetBitNegativeInside5
()
setBit(0) in the negative number of length 2 with all ones in bit representation.
public
void
testSetBitNegativeOutside1
()
public
void
testSetBitNegativeOutside2
()
public
void
testSetBitPositiveInside1
()
public
void
testSetBitPositiveInside2
()
public
void
testSetBitPositiveInside3
()
public
void
testSetBitPositiveInside4
()
public
void
testSetBitPositiveOutside1
()
public
void
testSetBitPositiveOutside2
()
public
void
testSetBitTopPositive
()
public
void
testSetBitZero
()
public
void
testSetBitZeroOutside1
()
public
void
testShiftLeft1
()
public
void
testShiftLeft2
()
public
void
testShiftLeft3
()
public
void
testShiftLeft4
()
public
void
testShiftLeft5
()
public
void
testShiftRight1
()
public
void
testShiftRight2
()
public
void
testShiftRight3
()
public
void
testShiftRight4
()
public
void
testShiftRight5
()
public
void
testShiftRightNegNonZeroes
()
shiftRight a negative number; shift distance is NOT multiple of 32; shifted bits are NOT zeroes.
public
void
testShiftRightNegNonZeroesMul32
()
shiftRight a negative number; shift distance is multiple of 32; shifted bits are NOT zeroes.
public
void
testShiftRightNegZeroes
()
shiftRight a negative number; shift distance is NOT multiple of 32; shifted bits are zeroes.
public
void
testShiftRightNegZeroesMul32
()
shiftRight a negative number; shift distance is multiple of 32; shifted bits are zeroes.
public
void
testTestBitException
()
public
void
testTestBitNegative1
()
public
void
testTestBitNegative2
()
public
void
testTestBitNegative3
()
public
void
testTestBitPositive1
()
public
void
testTestBitPositive2
()
public
void
testTestBitPositive3
()
Method Detail
testBitCountNeg
public
void testBitCountNeg()
(Code)
bitCount() of a negative number.
testBitCountPos
public
void testBitCountPos()
(Code)
bitCount() of a negative number.
testBitCountZero
public
void testBitCountZero()
(Code)
bitCount() of zero.
testBitLengthNegative1
public
void testBitLengthNegative1()
(Code)
bitLength() of a negative number.
testBitLengthNegative2
public
void testBitLengthNegative2()
(Code)
bitLength() of a negative number with the leftmost bit set
testBitLengthNegative3
public
void testBitLengthNegative3()
(Code)
bitLength() of a negative number which is a power of 2
testBitLengthPositive1
public
void testBitLengthPositive1()
(Code)
bitLength() of a positive number.
testBitLengthPositive2
public
void testBitLengthPositive2()
(Code)
bitLength() of a positive number with the leftmost bit set
testBitLengthPositive3
public
void testBitLengthPositive3()
(Code)
bitLength() of a positive number which is a power of 2
testBitLengthZero
public
void testBitLengthZero()
(Code)
bitLength() of zero.
testClearBitException
public
void testClearBitException()
(Code)
clearBit(int n) of a negative n
testClearBitNegativeInside1
public
void testClearBitNegativeInside1()
(Code)
clearBit(int n) inside a negative number
testClearBitNegativeInside2
public
void testClearBitNegativeInside2()
(Code)
clearBit(int n) inside a negative number
testClearBitNegativeInside3
public
void testClearBitNegativeInside3()
(Code)
clearBit(2) in the negative number with all ones in bit representation
testClearBitNegativeInside4
public
void testClearBitNegativeInside4()
(Code)
clearBit(0) in the negative number of length 1 with all ones in bit representation. the resulting number's length is 2.
testClearBitNegativeInside5
public
void testClearBitNegativeInside5()
(Code)
clearBit(0) in the negative number of length 2 with all ones in bit representation. the resulting number's length is 3.
testClearBitNegativeOutside1
public
void testClearBitNegativeOutside1()
(Code)
clearBit(int n) outside a negative number
testClearBitNegativeOutside2
public
void testClearBitNegativeOutside2()
(Code)
clearBit(int n) outside a negative number
testClearBitPositiveInside1
public
void testClearBitPositiveInside1()
(Code)
clearBit(int n) inside a positive number
testClearBitPositiveInside2
public
void testClearBitPositiveInside2()
(Code)
clearBit(int n) inside a positive number
testClearBitPositiveInside3
public
void testClearBitPositiveInside3()
(Code)
clearBit(int n) inside a positive number
testClearBitPositiveInside4
public
void testClearBitPositiveInside4()
(Code)
clearBit(int n) inside a positive number
testClearBitPositiveInside5
public
void testClearBitPositiveInside5()
(Code)
clearBit(int n) inside a positive number
testClearBitPositiveOutside1
public
void testClearBitPositiveOutside1()
(Code)
clearBit(int n) outside a positive number
testClearBitPositiveOutside2
public
void testClearBitPositiveOutside2()
(Code)
clearBit(int n) outside a positive number
testClearBitTopNegative
public
void testClearBitTopNegative()
(Code)
clearBit(int n) the leftmost bit in a negative number
testClearBitZero
public
void testClearBitZero()
(Code)
clearBit(int n) outside zero
testClearBitZeroOutside1
public
void testClearBitZeroOutside1()
(Code)
clearBit(int n) outside zero
testFlipBitException
public
void testFlipBitException()
(Code)
flipBit(int n) of a negative n
testFlipBitLeftmostNegative
public
void testFlipBitLeftmostNegative()
(Code)
flipBit(int n) the leftmost bit in a negative number
testFlipBitLeftmostPositive
public
void testFlipBitLeftmostPositive()
(Code)
flipBit(int n) the leftmost bit in a positive number
testFlipBitNegativeInside1
public
void testFlipBitNegativeInside1()
(Code)
flipBit(int n) inside a negative number
testFlipBitNegativeInside2
public
void testFlipBitNegativeInside2()
(Code)
flipBit(int n) inside a negative number
testFlipBitNegativeInside3
public
void testFlipBitNegativeInside3()
(Code)
flipBit(int n) inside a negative number with all ones in bit representation
testFlipBitNegativeInside4
public
void testFlipBitNegativeInside4()
(Code)
flipBit(0) in the negative number of length 1 with all ones in bit representation. the resulting number's length is 2.
testFlipBitNegativeInside5
public
void testFlipBitNegativeInside5()
(Code)
flipBit(0) in the negative number of length 2 with all ones in bit representation. the resulting number's length is 3.
testFlipBitNegativeOutside1
public
void testFlipBitNegativeOutside1()
(Code)
flipBit(int n) outside a negative number
testFlipBitNegativeOutside2
public
void testFlipBitNegativeOutside2()
(Code)
flipBit(int n) outside a negative number
testFlipBitPositiveInside1
public
void testFlipBitPositiveInside1()
(Code)
flipBit(int n) inside a positive number
testFlipBitPositiveInside2
public
void testFlipBitPositiveInside2()
(Code)
flipBit(int n) inside a positive number
testFlipBitPositiveOutside1
public
void testFlipBitPositiveOutside1()
(Code)
flipBit(int n) outside a positive number
testFlipBitPositiveOutside2
public
void testFlipBitPositiveOutside2()
(Code)
flipBit(int n) outside a positive number
testFlipBitZero
public
void testFlipBitZero()
(Code)
flipBit(int n) zero
testFlipBitZeroOutside1
public
void testFlipBitZeroOutside1()
(Code)
flipBit(int n) outside zero
testFlipBitZeroOutside2
public
void testFlipBitZeroOutside2()
(Code)
flipBit(int n) outside zero
testSetBitBug1331
public
void testSetBitBug1331()
(Code)
setBit: check the case when the number of bit to be set can be represented as n * 32 + 31, where n is an arbitrary integer. Here 191 = 5 * 32 + 31
testSetBitException
public
void testSetBitException()
(Code)
setBit(int n) of a negative n
testSetBitLeftmostNegative
public
void testSetBitLeftmostNegative()
(Code)
setBit(int n) the leftmost bit in a negative number
testSetBitNegativeInside1
public
void testSetBitNegativeInside1()
(Code)
setBit(int n) inside a negative number
testSetBitNegativeInside2
public
void testSetBitNegativeInside2()
(Code)
setBit(int n) inside a negative number
testSetBitNegativeInside3
public
void testSetBitNegativeInside3()
(Code)
setBit(int n) inside a negative number with all ones in bit representation
testSetBitNegativeInside4
public
void testSetBitNegativeInside4()
(Code)
setBit(0) in the negative number of length 1 with all ones in bit representation. the resulting number's length is 2.
testSetBitNegativeInside5
public
void testSetBitNegativeInside5()
(Code)
setBit(0) in the negative number of length 2 with all ones in bit representation. the resulting number's length is 3.
testSetBitNegativeOutside1
public
void testSetBitNegativeOutside1()
(Code)
setBit(int n) outside a negative number
testSetBitNegativeOutside2
public
void testSetBitNegativeOutside2()
(Code)
setBit(int n) outside a negative number
testSetBitPositiveInside1
public
void testSetBitPositiveInside1()
(Code)
setBit(int n) inside a positive number
testSetBitPositiveInside2
public
void testSetBitPositiveInside2()
(Code)
setBit(int n) inside a positive number
testSetBitPositiveInside3
public
void testSetBitPositiveInside3()
(Code)
setBit(int n) inside a positive number
testSetBitPositiveInside4
public
void testSetBitPositiveInside4()
(Code)
setBit(int n) inside a positive number
testSetBitPositiveOutside1
public
void testSetBitPositiveOutside1()
(Code)
setBit(int n) outside a positive number
testSetBitPositiveOutside2
public
void testSetBitPositiveOutside2()
(Code)
setBit(int n) outside a positive number
testSetBitTopPositive
public
void testSetBitTopPositive()
(Code)
setBit(int n) the leftmost bit in a positive number
testSetBitZero
public
void testSetBitZero()
(Code)
setBit(int n) outside zero
testSetBitZeroOutside1
public
void testSetBitZeroOutside1()
(Code)
setBit(int n) outside zero
testShiftLeft1
public
void testShiftLeft1()
(Code)
shiftLeft(int n), n = 0
testShiftLeft2
public
void testShiftLeft2()
(Code)
shiftLeft(int n), n < 0
testShiftLeft3
public
void testShiftLeft3()
(Code)
shiftLeft(int n) a positive number, n > 0
testShiftLeft4
public
void testShiftLeft4()
(Code)
shiftLeft(int n) a positive number, n > 0
testShiftLeft5
public
void testShiftLeft5()
(Code)
shiftLeft(int n) a negative number, n > 0
testShiftRight1
public
void testShiftRight1()
(Code)
shiftRight(int n), n = 0
testShiftRight2
public
void testShiftRight2()
(Code)
shiftRight(int n), n < 0
testShiftRight3
public
void testShiftRight3()
(Code)
shiftRight(int n), 0 < n < 32
testShiftRight4
public
void testShiftRight4()
(Code)
shiftRight(int n), n > 32
testShiftRight5
public
void testShiftRight5()
(Code)
shiftRight(int n), n is greater than bitLength()
testShiftRightNegNonZeroes
public
void testShiftRightNegNonZeroes()
(Code)
shiftRight a negative number; shift distance is NOT multiple of 32; shifted bits are NOT zeroes.
testShiftRightNegNonZeroesMul32
public
void testShiftRightNegNonZeroesMul32()
(Code)
shiftRight a negative number; shift distance is multiple of 32; shifted bits are NOT zeroes.
testShiftRightNegZeroes
public
void testShiftRightNegZeroes()
(Code)
shiftRight a negative number; shift distance is NOT multiple of 32; shifted bits are zeroes.
testShiftRightNegZeroesMul32
public
void testShiftRightNegZeroesMul32()
(Code)
shiftRight a negative number; shift distance is multiple of 32; shifted bits are zeroes.
testTestBitException
public
void testTestBitException()
(Code)
testBit(int n) of a negative n
testTestBitNegative1
public
void testTestBitNegative1()
(Code)
testBit(int n) of a negative number
testTestBitNegative2
public
void testTestBitNegative2()
(Code)
testBit(int n) of a positive n
testTestBitNegative3
public
void testTestBitNegative3()
(Code)
testBit(int n) of a positive n, n > bitLength()
testTestBitPositive1
public
void testTestBitPositive1()
(Code)
testBit(int n) of a positive number
testTestBitPositive2
public
void testTestBitPositive2()
(Code)
testBit(int n) of a positive number
testTestBitPositive3
public
void testTestBitPositive3()
(Code)
testBit(int n) of a positive number, n > bitLength()
www.java2java.com
|
Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.