Skip to content

Commit

Permalink
improve PhoneNumberAnalyzerTests#testTelPrefixSearch (#17016)
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 <[email protected]>
  • Loading branch information
rursprung authored Jan 13, 2025
1 parent f98f426 commit a609e63
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 a609e63

Please sign in to comment.