void () { IntList list = new IntArrayList(TrigramBuilder.getTrigrams("String$CharData")); list.sort(null); int expectedTrigramCount = 13; assertEquals(expectedTrigramCount, list.size()); int[] expected = {buildTrigram("$Ch"), buildTrigram("arD"), buildTrigram("ata"), 6514785, 6578548, 6759523, 6840690, 6909543, 7235364, 7496801, 7498094, 7566450, 7631465, }; for (int i = 0; i < expectedTrigramCount; ++i) { assertEquals(expected[i], list.getInt(i)); } }