We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56e2c68 commit 5a9d7beCopy full SHA for 5a9d7be
tests/taglib/test_id3v2.rs
@@ -864,10 +864,18 @@ fn test_update_genre23_3() {
864
865
#[test]
866
fn test_update_genre_24() {
867
- todo!(
868
- "We currently just return the genre string as it is in the tag, need to think about \
869
- whether or not to convert numerical strings"
+ let frame_value = TextInformationFrame::parse(
+ &mut &b"\x00\
+ 14\0Eurodisco"[..],
870
+ Id3v2Version::V4,
871
)
872
+ .unwrap()
873
+ .unwrap();
874
+
875
+ let mut tag = Id3v2Tag::new();
876
+ tag.insert(Frame::new("TCON", frame_value, FrameFlags::default()).unwrap());
877
878
+ assert_eq!(tag.genre().as_deref(), Some("R&B / Eurodisco"));
879
}
880
881
0 commit comments