Ejemplo n.º 1
0
  @Test
  public void threshold() {
    // ignore recurring word sequences when matching episode patterns
    String[] names = new String[] {"Test 1 of 101", "Test 2 of 101", "Test 3 of 101"};

    assertArrayEquals(new String[] {"Test"}, matcher.matchAll(names).toArray());
  }
Ejemplo n.º 2
0
  @Test
  public void whitelist() {
    // ignore recurring word sequences when matching episode patterns
    String[] names = new String[] {"Test 101 - 01", "Test 101 - 02"};

    assertArrayEquals(new String[] {"Test 101"}, matcher.matchAll(names).toArray());
  }