ID3v2: Fix some comment tests

This commit is contained in:
Serial 2024-05-02 13:53:28 -04:00 committed by Alex
parent 928410da6a
commit dc80f763a3
2 changed files with 4 additions and 4 deletions

View file

@ -207,8 +207,8 @@ fn tag_to_id3v2() {
assert_eq!(
frame,
&Frame::Comment(CommentFrame::new(
TextEncoding::Latin1,
*b"eng",
TextEncoding::UTF8,
*b"XXX",
EMPTY_CONTENT_DESCRIPTOR,
String::from("Qux comment"),
))

View file

@ -18,7 +18,7 @@ fn tag_to_id3v2_lang_frame() {
id3.get(&FrameId::Valid(Cow::Borrowed("USLT"))),
Some(&Frame::UnsynchronizedText(UnsynchronizedTextFrame::new(
TextEncoding::UTF8,
*b"eng",
*b"XXX",
String::new(),
String::from("Test lyrics")
)))
@ -28,7 +28,7 @@ fn tag_to_id3v2_lang_frame() {
id3.get(&FrameId::Valid(Cow::Borrowed("COMM"))),
Some(&Frame::Comment(CommentFrame::new(
TextEncoding::UTF8,
*b"eng",
*b"XXX",
String::new(),
String::from("Test comment")
)))