mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Improve chapter recognition.
This commit is contained in:
		| @@ -121,4 +121,18 @@ public class ChapterRecognitionTest { | ||||
|         assertThat(c.chapter_number).isEqualTo(84f); | ||||
|     } | ||||
|  | ||||
|     @Test | ||||
|     public void testWithVersionBeforeAndAnotherNumber() { | ||||
|         Chapter c = createChapter("Onepunch-Man Punch Ver002 086 : Creeping Darkness [3]"); | ||||
|         ChapterRecognition.parseChapterNumber(c, randomManga); | ||||
|         assertThat(c.chapter_number).isEqualTo(86f); | ||||
|     } | ||||
|  | ||||
|     @Test | ||||
|     public void testWithVolumeAfterChapter() { | ||||
|         Chapter c = createChapter("Solanin 028 Vol. 2"); | ||||
|         ChapterRecognition.parseChapterNumber(c, randomManga); | ||||
|         assertThat(c.chapter_number).isEqualTo(28f); | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user