Add a new test case for chapter recognition

This commit is contained in:
inorichi
2015-12-19 16:22:57 +01:00
parent 9a117f0969
commit 0a7f8711ad
2 changed files with 11 additions and 3 deletions

View File

@@ -113,4 +113,12 @@ public class ChapterRecognitionTest {
assertThat(c.chapter_number, is(567f));
}
@Test
public void testWithVersionBefore() {
// It should be 84, not 2084)
Chapter c = createChapter("Onepunch-Man Punch Ver002 084 : Creeping Darkness");
ChapterRecognition.parseChapterNumber(c, randomManga);
assertThat(c.chapter_number, is(84f));
}
}