LUCENE-10182: Order assertion parameters correctly (#397)

This commit is contained in:
Stefan Vodita 2021-10-19 17:29:46 +03:00 committed by GitHub
parent 1448e4739b
commit 54c5a2ce28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 14 deletions

View File

@ -60,44 +60,44 @@ public class TestRamUsageEstimator extends LuceneTestCase {
{ {
boolean[] array = new boolean[rnd.nextInt(1024)]; boolean[] array = new boolean[rnd.nextInt(1024)];
assertEquals(sizeOf(array), ramUsed(array)); assertEquals(ramUsed(array), sizeOf(array));
assertEquals(shallowSizeOf(array), ramUsed(array)); assertEquals(ramUsed(array), shallowSizeOf(array));
} }
{ {
char[] array = new char[rnd.nextInt(1024)]; char[] array = new char[rnd.nextInt(1024)];
assertEquals(sizeOf(array), ramUsed(array)); assertEquals(ramUsed(array), sizeOf(array));
assertEquals(shallowSizeOf(array), ramUsed(array)); assertEquals(ramUsed(array), shallowSizeOf(array));
} }
{ {
short[] array = new short[rnd.nextInt(1024)]; short[] array = new short[rnd.nextInt(1024)];
assertEquals(sizeOf(array), ramUsed(array)); assertEquals(ramUsed(array), sizeOf(array));
assertEquals(shallowSizeOf(array), ramUsed(array)); assertEquals(ramUsed(array), shallowSizeOf(array));
} }
{ {
int[] array = new int[rnd.nextInt(1024)]; int[] array = new int[rnd.nextInt(1024)];
assertEquals(sizeOf(array), ramUsed(array)); assertEquals(ramUsed(array), sizeOf(array));
assertEquals(shallowSizeOf(array), ramUsed(array)); assertEquals(ramUsed(array), shallowSizeOf(array));
} }
{ {
float[] array = new float[rnd.nextInt(1024)]; float[] array = new float[rnd.nextInt(1024)];
assertEquals(sizeOf(array), ramUsed(array)); assertEquals(ramUsed(array), sizeOf(array));
assertEquals(shallowSizeOf(array), ramUsed(array)); assertEquals(ramUsed(array), shallowSizeOf(array));
} }
{ {
long[] array = new long[rnd.nextInt(1024)]; long[] array = new long[rnd.nextInt(1024)];
assertEquals(sizeOf(array), ramUsed(array)); assertEquals(ramUsed(array), sizeOf(array));
assertEquals(shallowSizeOf(array), ramUsed(array)); assertEquals(ramUsed(array), shallowSizeOf(array));
} }
{ {
double[] array = new double[rnd.nextInt(1024)]; double[] array = new double[rnd.nextInt(1024)];
assertEquals(sizeOf(array), ramUsed(array)); assertEquals(ramUsed(array), sizeOf(array));
assertEquals(shallowSizeOf(array), ramUsed(array)); assertEquals(ramUsed(array), shallowSizeOf(array));
} }
} }