Fix chapter recognition. Improve initial requests to fetch chapters from source

This commit is contained in:
inorichi
2015-12-03 13:57:25 +01:00
parent b986309b81
commit 384acb2322
5 changed files with 48 additions and 15 deletions

View File

@@ -105,4 +105,12 @@ public class ChapterRecognitionTest {
assertThat(c.chapter_number, is(191f));
}
@Test
public void testWithKeywordChAtTheEndOfTheManga() {
// It should be 567, not 67 (ch is a keyword to get the chapter number)
Chapter c = createChapter("Bleach 567: Down With Snowwhite");
ChapterRecognition.parseChapterNumber(c, randomManga);
assertThat(c.chapter_number, is(567f));
}
}