mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Fixes case where manga name ends with s. (#919)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							6059b85e58
						
					
				
				
					commit
					aefe7b176a
				
			@@ -440,4 +440,15 @@ class ChapterRecognitionTest {
 | 
			
		||||
        ChapterRecognition.parseChapterNumber(chapter, manga)
 | 
			
		||||
        assertThat(chapter.chapter_number).isEqualTo(20f)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Test for chapters ending with s
 | 
			
		||||
     */
 | 
			
		||||
    @Test fun chaptersEndingWithS() {
 | 
			
		||||
        createManga("One Outs")
 | 
			
		||||
 | 
			
		||||
        createChapter("One Outs 001")
 | 
			
		||||
        ChapterRecognition.parseChapterNumber(chapter, manga)
 | 
			
		||||
        assertThat(chapter.chapter_number).isEqualTo(1f)
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user