aboutsummaryrefslogtreecommitdiff
path: root/tests/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-12-09 14:21:21 +0100
committerdec05eba <dec05eba@protonmail.com>2023-12-09 14:21:21 +0100
commit52dfa42283541ff48cce3a6cbdf4e2e2e8567a30 (patch)
tree7e0c6de28d2f225f1ff18cb6be09b8261ee17eb7 /tests/main.cpp
parent63687791060ca73564fb5e2d49995f4cbb152753 (diff)
Local anime: parse SXXEXX pattern
Diffstat (limited to 'tests/main.cpp')
-rw-r--r--tests/main.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index 5063c2d..329ffb4 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -83,6 +83,7 @@ int main() {
assert_equals(name_parts1->anime, "Shikkakumon no Saikyou Kenja");
assert_equals(name_parts1->season.size(), 0);
assert_equals(name_parts1->episode, "07");
+ assert_equals(name_parts1->resolution, "1080p");
std::optional<EpisodeNameParts> name_parts2 = episode_name_extract_parts("[SubsPlease] Shingeki no Kyojin (The Final Season) - 81 (1080p) [601A33BD].mkv");
assert_equals(name_parts2.has_value(), true);
@@ -90,6 +91,7 @@ int main() {
assert_equals(name_parts2->anime, "Shingeki no Kyojin (The Final Season)");
assert_equals(name_parts2->season.size(), 0);
assert_equals(name_parts2->episode, "81");
+ assert_equals(name_parts2->resolution, "1080p");
std::optional<EpisodeNameParts> name_parts3 = episode_name_extract_parts("[SubsPlease] Lupin III - Part 6 - 18 (1080p) [98204042].mkv");
assert_equals(name_parts3.has_value(), true);
@@ -97,6 +99,7 @@ int main() {
assert_equals(name_parts3->anime, "Lupin III");
assert_equals(name_parts3->season, "Part 6");
assert_equals(name_parts3->episode, "18");
+ assert_equals(name_parts3->resolution, "1080p");
std::optional<EpisodeNameParts> name_parts4 = episode_name_extract_parts("[SubsPlease] Kimetsu no Yaiba - Yuukaku-hen - 11 (1080p) [BE15F231].mkv");
assert_equals(name_parts4.has_value(), true);
@@ -104,6 +107,15 @@ int main() {
assert_equals(name_parts4->anime, "Kimetsu no Yaiba");
assert_equals(name_parts4->season, "Yuukaku-hen");
assert_equals(name_parts4->episode, "11");
+ assert_equals(name_parts4->resolution, "1080p");
+
+ std::optional<EpisodeNameParts> name_parts5 = episode_name_extract_parts("[Breeze] Undead Unluck - S01E10 [1080p EAC-3 AV1].mkv");
+ assert_equals(name_parts5.has_value(), true);
+ assert_equals(name_parts5->group, "Breeze");
+ assert_equals(name_parts5->anime, "Undead Unluck");
+ assert_equals(name_parts5->season, "01");
+ assert_equals(name_parts5->episode, "10");
+ assert_equals(name_parts5->resolution, "1080p");
uint32_t emoji_sequence[32];
size_t emoji_sequence_length = 0;