mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Fix infinite loop when no chapter number is parsed
This commit is contained in:
		| @@ -172,4 +172,11 @@ public class ChapterRecognitionTest { | ||||
|         ChapterRecognition.parseChapterNumber(c, randomManga); | ||||
|         assertThat(c.chapter_number).isEqualTo(027f); | ||||
|     } | ||||
|  | ||||
|     @Test | ||||
|     public void testUnparsable() { | ||||
|         Chapter c = createChapter("Foo"); | ||||
|         ChapterRecognition.parseChapterNumber(c, randomManga); | ||||
|         assertThat(c.chapter_number).isEqualTo(-1f); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user