Skip to content

Commit

Permalink
improve PhoneNumberAnalyzerTests#testTelPrefixSearch
Browse files Browse the repository at this point in the history
this way we ensure that it doesn't include any additional tokens which
we don't want.

this is a follow-up to commit 4d94399 / #16993.

Signed-off-by: Ralph Ursprung <Ralph.Ursprung@avaloq.com>
  • Loading branch information
rursprung committed Jan 13, 2025
1 parent f98f426 commit 1819500
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ public void testSipWithoutDomainPart() throws IOException {
}

public void testTelPrefix() throws IOException {
assertTokensInclude("tel:+1228", Arrays.asList("1228", "122", "228"));
assertTokensInclude(phoneAnalyzer,"tel:+1228", Arrays.asList("tel:+1228", "tel:", "1228", "122", "228"));
}

public void testTelPrefixSearch() throws IOException {
assertTokensInclude("tel:+1228", Arrays.asList("1228"));
assertTokensAreInAnyOrder(phoneSearchAnalyzer, "tel:+1228", Arrays.asList("tel:+1228", "1228"));
}

public void testNumberPrefix() throws IOException {
Expand Down

0 comments on commit 1819500

Please sign in to comment.