Update UnsafeTest.java (#1655)

This commit is contained in:
pedja4 2017-04-15 18:32:41 +02:00 committed by GitHub
parent b7d6487547
commit 99a0b6e2f1
1 changed files with 6 additions and 1 deletions

View File

@ -68,9 +68,14 @@ public class UnsafeTest {
sum += array.get((long) Integer.MAX_VALUE + i); sum += array.get((long) Integer.MAX_VALUE + i);
} }
long arraySize = array.size();
array.freeMemory();
//then //then
assertEquals(array.size(), SUPER_SIZE); assertEquals(arraySize, SUPER_SIZE);
assertEquals(sum, 300); assertEquals(sum, 300);
} }
@Test @Test