Skip to content

Commit

Permalink
#22 Remove invalid call of method after call to 'unref()'
Browse files Browse the repository at this point in the history
  • Loading branch information
bailuk committed Aug 7, 2023
1 parent b504a34 commit 0c833f6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions java-gtk/src/test/java/ch/bailu/gtk/TestGBytes.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,15 @@ public void testBytes() {

Bytes bytesA = new Bytes(buffer);


assertEquals(200, bytesA.getSize());
assertEquals(42, bytesA.getByte(0));
assertEquals(99, bytesA.getByte(199));
bytesA.unref();
assertEquals(0, bytesA.getSize());


Bytes bytesB = new Bytes(new byte[0]);
assertEquals(0, bytesB.getSize());
bytesB.unref();


Bytes bytesC = new Bytes(new byte[]{4,5,0});
byte[] res = bytesC.toBytes();
assertEquals(3, res.length);
Expand Down

0 comments on commit 0c833f6

Please sign in to comment.