mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 23:10:40 +00:00
ICU-22789 Fix localized segmenter test by not expecting locale tailorings
This commit is contained in:
parent
19364023c3
commit
f59006802f
1 changed files with 3 additions and 4 deletions
|
@ -22,11 +22,10 @@ public class LocalizedSegmenterTest extends CoreTestFmwk {
|
|||
|
||||
@Test
|
||||
public void testLocaleInLocalizedSegmenter() {
|
||||
String source = "k:a";
|
||||
String source = "Die 21en Jahrh. ist die Beste.";
|
||||
|
||||
Object[][] casesData = {
|
||||
{"en", Arrays.asList("k", ":", "a")},
|
||||
{"sv", Arrays.asList("k:a")}
|
||||
{"de", Arrays.asList("Die 21en Jahrh. ist die Beste.")},
|
||||
};
|
||||
|
||||
for (Object[] caseDatum : casesData) {
|
||||
|
@ -37,7 +36,7 @@ public class LocalizedSegmenterTest extends CoreTestFmwk {
|
|||
Segmenter wordSeg =
|
||||
new LocalizedSegmenterBuilder()
|
||||
.setLocale(locale)
|
||||
.setSegmentationType(SegmentationType.WORD)
|
||||
.setSegmentationType(SegmentationType.SENTENCE)
|
||||
.build();
|
||||
Segments segments = wordSeg.segment(source);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue