@Test public void randomTest() { int N = 100; Random r = new Random(); for (int i = 0; i <= 800; i++) { if (i % 100 == 99) N <<= 1; List<Integer> pre = Shuffler.getRandomList(1 + r.nextInt(N), 0, N); List<String> input = pre.stream().map((a) -> Integer.toBinaryString(a)).collect(Collectors.toList()); String[] cur = input.toArray(new String[0]); Assert.assertEquals(expect(cur.clone()), PrefixFreeCode.isPrefixFree(cur)); } }
public static boolean isPrefixFree(String[] input) { return false; }
PrefixFreeCode { public static boolean isPrefixFree(String[] input) { return false; } }
PrefixFreeCode { public static boolean isPrefixFree(String[] input) { return false; }  }
PrefixFreeCode { public static boolean isPrefixFree(String[] input) { return false; }  static boolean isPrefixFree(String[] input); }
PrefixFreeCode { public static boolean isPrefixFree(String[] input) { return false; }  static boolean isPrefixFree(String[] input);  }