summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-08-02 01:22:29 +0200
committerSven Gothel <[email protected]>2015-08-02 01:22:29 +0200
commitbea171a16539b16b493acc9cc0e102985e2939a6 (patch)
treea25de85c0da61097dadd1dfc50639260a26a9715
parent74c25e4f1ee32686229c4032671b94022269d33b (diff)
Test Bitfield: Validate Bitfield.copy(..) return value
-rw-r--r--src/junit/com/jogamp/common/util/TestBitfield00.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/junit/com/jogamp/common/util/TestBitfield00.java b/src/junit/com/jogamp/common/util/TestBitfield00.java
index 7f2835a..a2d5d73 100644
--- a/src/junit/com/jogamp/common/util/TestBitfield00.java
+++ b/src/junit/com/jogamp/common/util/TestBitfield00.java
@@ -341,7 +341,8 @@ public class TestBitfield00 extends SingletonJunitCase {
// copy bits 1 forward
// clear trailing orig bit
for(int i=d.bitSize-1; i>=0; i--) {
- bf.copy(lowBitnum+i, lowBitnum+1+i);
+ Assert.assertEquals(msg+", bitpos "+i, 0 != ( d.val & ( 1 << i ) ),
+ bf.copy(lowBitnum+i, lowBitnum+1+i) );
}
bf.clear(lowBitnum);
Assert.assertEquals(msg, d.val, bf.get32( lowBitnum+1, d.bitSize));