Skip to content

Commit

Permalink
Fix artist parser test
Browse files Browse the repository at this point in the history
  • Loading branch information
shedrachokonofua committed Jun 16, 2024
1 parent e0bfaa8 commit 1a9a13e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion core/src/parser/artist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ mod tests {
let file_content = include_str!(test_resource!("artist.html"));
let artist = parse_artist(file_content).map_err(|err| err.to_string())?;
assert_eq!(artist.name, "billy woods");
assert_eq!(artist.albums.len(), 12);
assert_eq!(artist.albums.len(), 13);
assert_eq!(artist.albums[0].name, "Camouflage");
assert_eq!(
artist.albums[0].file_name,
Expand Down Expand Up @@ -111,6 +111,17 @@ mod tests {
artist.albums[11].file_name,
FileName::try_from("release/album/billy-woods-kenny-segal/maps").unwrap()
);
assert_eq!(
artist.albums[12].name,
"Cowardly Threats & Hideous Cruelty; The Best of Billy Woods"
);
assert_eq!(
artist.albums[11].file_name,
FileName::try_from(
"release/comp/billy-woods/cowardly-threats-and-hideous-cruelty-the-best-of-billy-woods"
)
.unwrap()
);
Ok(())
}
}

0 comments on commit 1a9a13e

Please sign in to comment.