mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-05 21:45:37 +00:00
ICU-22789 Fix unit test logical bug to be more interesting as intended
This commit is contained in:
parent
a3010b5939
commit
0655a2358e
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ public class LocalizedSegmenterTest extends CoreTestFmwk {
|
|||
String source = "Die 21en Jahrh. ist die Beste.";
|
||||
|
||||
Object[][] casesData = {
|
||||
{"de", Arrays.asList("Die 21en Jahrh. ist die Beste.")},
|
||||
{"de", Arrays.asList("Die", " ", "21en", " ", "Jahrh", ".", " ", "ist", " ", "die", " ", "Beste", ".")},
|
||||
};
|
||||
|
||||
for (Object[] caseDatum : casesData) {
|
||||
|
@ -35,7 +35,7 @@ public class LocalizedSegmenterTest extends CoreTestFmwk {
|
|||
Segmenter wordSeg =
|
||||
LocalizedSegmenter.builder()
|
||||
.setLocale(locale)
|
||||
.setSegmentationType(SegmentationType.SENTENCE)
|
||||
.setSegmentationType(SegmentationType.WORD)
|
||||
.build();
|
||||
Segments segments = wordSeg.segment(source);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue