@@ -221,6 +221,16 @@ public void testArabicFormatRectoversoFoliationFromUppercaseRoman() {
221221 assertEquals ("1°¡r¿`v`½" , PaginatorType .ARABIC .format (PaginatorMode .RECTOVERSO_FOLIATION , "I" , false , UNUSED_STRING ));
222222 }
223223
224+ @ Test
225+ public void testArabicFormatFoliationWithEmptyPage () {
226+ assertEquals ("¿UNCOUNTED¡1½" , PaginatorType .ARABIC .format (PaginatorMode .FOLIATION_WITH_EMPTY_PAGE , "1" , false , UNUSED_STRING ));
227+ }
228+
229+ @ Test
230+ public void testArabicFormatFoliationWithEmptyPageFictious () {
231+ assertEquals ("[¿UNCOUNTED¡1½]" , PaginatorType .ARABIC .format (PaginatorMode .FOLIATION_WITH_EMPTY_PAGE , "1" , true , UNUSED_STRING ));
232+ }
233+
224234 @ Test
225235 public void testFreetextFormatColumns () {
226236 assertEquals ("`Hello world!`²" ,
@@ -483,6 +493,11 @@ public void testRomanFormatRectoversoFoliationFromUppercaseRoman() {
483493 assertEquals ("VI°¡r¿`v`½" , PaginatorType .ROMAN .format (PaginatorMode .RECTOVERSO_FOLIATION , "VI" , false , UNUSED_STRING ));
484494 }
485495
496+ @ Test
497+ public void testRomanFormatFoliationWithEmptyPage () {
498+ assertEquals ("¿UNCOUNTED¡III½" , PaginatorType .ROMAN .format (PaginatorMode .FOLIATION_WITH_EMPTY_PAGE , "3" , false , UNUSED_STRING ));
499+ }
500+
486501 @ Test
487502 public void testAlphabeticFormatColumnsFictious () {
488503 assertEquals ("[´e´²]" , PaginatorType .ALPHABETIC .format (PaginatorMode .COLUMNS , "e" , true , UNUSED_STRING ));
@@ -508,7 +523,13 @@ public void testAlphabeticFormatRectoversoFoliation() {
508523 assertEquals ("´m´°¡r¿`v`½" , PaginatorType .ALPHABETIC .format (PaginatorMode .RECTOVERSO_FOLIATION , "m" , false , UNUSED_STRING ));
509524 }
510525
511-
526+ @ Test
527+ public void testAlphabeticFormatFoliationWithEmptyPage () {
528+ assertEquals (
529+ "¿UNCOUNTED¡´x´½" ,
530+ PaginatorType .ALPHABETIC .format (PaginatorMode .FOLIATION_WITH_EMPTY_PAGE , "x" , false , UNUSED_STRING )
531+ );
532+ }
512533
513534 @ Test
514535 public void testUncountedFormatColumns () {
0 commit comments