Skip to content

Commit

Permalink
test: support NBSP and empty space for testing
Browse files Browse the repository at this point in the history
.replace("\u00a0"," ");
  • Loading branch information
jy95 committed Feb 9, 2025
1 parent 5f134e6 commit a652b46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private String getExpectedText1(Locale locale) {
void testWithWhenAndCount(Locale locale) throws ExecutionException, InterruptedException {
var dosage = generateWithWhenAndCount();
var dosageUtils = getDosageAPI(locale, DisplayOrder.OFFSET_WHEN);
String result = dosageUtils.asHumanReadableText(dosage).get();
String result = dosageUtils.asHumanReadableText(dosage).get().replace("\u00a0"," ");;
String expectedResult = getExpectedText2(locale);
assertEquals(expectedResult, result);
}
Expand Down

0 comments on commit a652b46

Please sign in to comment.