MCPcopy Create free account
hub / github.com/ReadyTalk/avian / testSort

Method testSort

test/ArraysTest.java:29–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 }
28
29 public static void testSort() {
30 Integer[] array = new Integer[64];
31 for (int i = 0; i < array.length; ++i) {
32 array[i] = Integer.valueOf(i + 1);
33 }
34 ;
35 int random = 12345;
36 for (int i = 0; i < 32; ++i) {
37 random = shuffle(array, random);
38 Arrays.sort(array);
39 expectSorted(array);
40 }
41 }
42
43 public static void main(String[] args) {
44 { int[] array = new int[0];

Callers 1

mainMethod · 0.95

Calls 4

valueOfMethod · 0.95
shuffleMethod · 0.95
sortMethod · 0.95
expectSortedMethod · 0.95

Tested by

no test coverage detected