File tree 1 file changed +3
-23
lines changed
1 file changed +3
-23
lines changed Original file line number Diff line number Diff line change 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 ;
8
2
9
3
#[ test]
10
- #[ ignore] // TODO: We probably should be stripping whitespace
4
+ #[ ignore]
11
5
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
27
7
}
28
8
29
9
#[ test]
You can’t perform that action at this time.
0 commit comments