@@ -230,33 +230,11 @@ fn test_strip_tags() {
230
230
}
231
231
232
232
#[ test]
233
+ #[ ignore]
233
234
fn test_duplicate_tags ( ) {
234
- let mut file = temp_file ! ( "tests/taglib/data/duplicate_tags.wav" ) ;
235
-
236
- let f = WavFile :: read_from ( & mut file, ParseOptions :: new ( ) ) . unwrap ( ) ;
237
- assert_eq ! ( file. seek( SeekFrom :: End ( 0 ) ) . unwrap( ) , 17052 ) ;
238
- file. rewind ( ) . unwrap ( ) ;
239
-
240
- // duplicate_tags.wav has duplicate ID3v2/INFO tags.
241
- // title() returns "Title2" if can't skip the second tag.
242
-
243
- assert ! ( f. id3v2( ) . is_some( ) ) ;
244
- assert_eq ! ( f. id3v2( ) . unwrap( ) . title( ) . as_deref( ) , Some ( "Title1" ) ) ;
245
-
246
- assert ! ( f. riff_info( ) . is_some( ) ) ;
247
- assert_eq ! ( f. riff_info( ) . unwrap( ) . title( ) . as_deref( ) , Some ( "Title1" ) ) ;
248
-
249
- f. save_to ( & mut file, WriteOptions :: default ( ) ) . unwrap ( ) ;
250
- assert_eq ! ( file. seek( SeekFrom :: End ( 0 ) ) . unwrap( ) , 15898 ) ;
251
-
252
- let mut file_bytes = Vec :: new ( ) ;
253
- file. rewind ( ) . unwrap ( ) ;
254
- file. read_to_end ( & mut file_bytes) . unwrap ( ) ;
255
-
256
- assert_eq ! (
257
- file_bytes. windows( 6 ) . position( |window| window == b"Title2" ) ,
258
- None
259
- ) ;
235
+ // Marker test, TagLib will ignore any tag except for the first. Lofty will *not* do this.
236
+ // Every tag in the stream is read and merged into the previous one. Whichever tag ends up being
237
+ // the latest in the stream will have precedence.
260
238
}
261
239
262
240
#[ test]
0 commit comments