Skip to content

Commit 2be48d5

Browse files
committed
Tests: Remove TagLib ID3v1 test_strip_whitespace test
1 parent 17b9242 commit 2be48d5

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

tests/taglib/test_id3v1.rs

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,9 @@
1-
use crate::temp_file;
2-
3-
use std::io::Seek;
4-
5-
use lofty::id3::v1::{Id3v1Tag, GENRES};
6-
use lofty::mpeg::MpegFile;
7-
use lofty::{Accessor, AudioFile, ParseOptions};
1+
use lofty::id3::v1::GENRES;
82

93
#[test]
10-
#[ignore] // TODO: We probably should be stripping whitespace
4+
#[ignore]
115
fn test_strip_whitespace() {
12-
let mut file = temp_file!("tests/taglib/data/xing.mp3");
13-
{
14-
let mut f = MpegFile::read_from(&mut file, ParseOptions::new()).unwrap();
15-
file.rewind().unwrap();
16-
17-
let mut tag = Id3v1Tag::default();
18-
tag.set_artist(String::from("Artist "));
19-
f.set_id3v1(tag);
20-
f.save_to(&mut file).unwrap();
21-
}
22-
file.rewind().unwrap();
23-
{
24-
let f = MpegFile::read_from(&mut file, ParseOptions::new()).unwrap();
25-
assert_eq!(f.id3v1().unwrap().artist().as_deref(), Some("Artist"));
26-
}
6+
// Marker test, we'd be overstepping to remove trailing whitespace that may be intentional
277
}
288

299
#[test]

0 commit comments

Comments
 (0)