diff options
author | Sven Gothel <[email protected]> | 2015-08-02 01:22:29 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-08-02 01:22:29 +0200 |
commit | bea171a16539b16b493acc9cc0e102985e2939a6 (patch) | |
tree | a25de85c0da61097dadd1dfc50639260a26a9715 /src/junit/com | |
parent | 74c25e4f1ee32686229c4032671b94022269d33b (diff) |
Test Bitfield: Validate Bitfield.copy(..) return value
Diffstat (limited to 'src/junit/com')
-rw-r--r-- | src/junit/com/jogamp/common/util/TestBitfield00.java | 3 |
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)); |