mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	differentiate subchapters denoted by an alpha prefix
This commit is contained in:
		| @@ -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); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user