Skip to content

Commit a652b46

Browse files
committed
test: support NBSP and empty space for testing
.replace("\u00a0"," ");
1 parent 5f134e6 commit a652b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/test/java/io/github/jy95/fds/translators/AbstractOffsetWhenTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private String getExpectedText1(Locale locale) {
5151
void testWithWhenAndCount(Locale locale) throws ExecutionException, InterruptedException {
5252
var dosage = generateWithWhenAndCount();
5353
var dosageUtils = getDosageAPI(locale, DisplayOrder.OFFSET_WHEN);
54-
String result = dosageUtils.asHumanReadableText(dosage).get();
54+
String result = dosageUtils.asHumanReadableText(dosage).get().replace("\u00a0"," ");;
5555
String expectedResult = getExpectedText2(locale);
5656
assertEquals(expectedResult, result);
5757
}

0 commit comments

Comments
 (0)