From d476431707e97174b6aa82f474bb76c5b7f2ffe7 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 26 Jun 2022 22:49:18 -0400 Subject: [PATCH] Fix unit test class to match package --- .../database => util/chapter}/ChapterRecognitionTest.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) rename app/src/test/java/eu/kanade/tachiyomi/{data/database => util/chapter}/ChapterRecognitionTest.kt (97%) diff --git a/app/src/test/java/eu/kanade/tachiyomi/data/database/ChapterRecognitionTest.kt b/app/src/test/java/eu/kanade/tachiyomi/util/chapter/ChapterRecognitionTest.kt similarity index 97% rename from app/src/test/java/eu/kanade/tachiyomi/data/database/ChapterRecognitionTest.kt rename to app/src/test/java/eu/kanade/tachiyomi/util/chapter/ChapterRecognitionTest.kt index c1bcb66744..a83d7ada00 100644 --- a/app/src/test/java/eu/kanade/tachiyomi/data/database/ChapterRecognitionTest.kt +++ b/app/src/test/java/eu/kanade/tachiyomi/util/chapter/ChapterRecognitionTest.kt @@ -1,6 +1,5 @@ -package eu.kanade.tachiyomi.data.database +package eu.kanade.tachiyomi.util.chapter -import eu.kanade.tachiyomi.util.chapter.ChapterRecognition.parseChapterNumber import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Test import org.junit.jupiter.api.parallel.Execution @@ -255,7 +254,7 @@ class ChapterRecognitionTest { } private fun assertChapter(mangaTitle: String, name: String, expected: Float) { - val chapterNumber = parseChapterNumber(mangaTitle, name) + val chapterNumber = ChapterRecognition.parseChapterNumber(mangaTitle, name) assertEquals(chapterNumber, expected) } }