differentiate subchapters denoted by an alpha prefix

This commit is contained in:
Robin Appelman
2016-02-09 20:57:26 +01:00
parent fa4a8204a4
commit 1611a274b9
2 changed files with 26 additions and 0 deletions

View File

@@ -148,4 +148,14 @@ public class ChapterRecognitionTest {
ChapterRecognition.parseChapterNumber(c, randomManga);
assertThat(c.chapter_number).isEqualTo(99f);
}
@Test
public void testAlphaSubChapters() {
Chapter c = createChapter("Asu No Yoichi 19a");
ChapterRecognition.parseChapterNumber(c, randomManga);
assertThat(c.chapter_number).isEqualTo(19.1f);
c = createChapter("Asu No Yoichi 19b");
ChapterRecognition.parseChapterNumber(c, randomManga);
assertThat(c.chapter_number).isEqualTo(19.2f);
}
}