From bea171a16539b16b493acc9cc0e102985e2939a6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 2 Aug 2015 01:22:29 +0200 Subject: Test Bitfield: Validate Bitfield.copy(..) return value --- src/junit/com/jogamp/common/util/TestBitfield00.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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)); -- cgit v1.2.3