File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -296,8 +296,7 @@ fn test_properties() {
296
296
) ;
297
297
tag. push ( String :: from ( "COMMENT" ) , String :: from ( "Comment" ) ) ;
298
298
tag. push ( String :: from ( "DATE" ) , String :: from ( "2021-01-10" ) ) ;
299
- tag. push ( String :: from ( "DISCNUMBER" ) , String :: from ( "3" ) ) ;
300
- tag. push ( String :: from ( "DISCTOTAL" ) , String :: from ( "5" ) ) ;
299
+ tag. push ( String :: from ( "DISCNUMBER" ) , String :: from ( "3/5" ) ) ;
301
300
tag. push ( String :: from ( "GENRE" ) , String :: from ( "Genre" ) ) ;
302
301
tag. push ( String :: from ( "ISRC" ) , String :: from ( "UKAAA0500001" ) ) ;
303
302
tag. push ( String :: from ( "LABEL" ) , String :: from ( "Label 1" ) ) ;
@@ -356,7 +355,10 @@ fn test_properties() {
356
355
}
357
356
file. rewind ( ) . unwrap ( ) ;
358
357
{
359
- let f = FlacFile :: read_from ( & mut file, ParseOptions :: new ( ) ) . unwrap ( ) ;
358
+ // <current>/<total> DISCNUMBER is a special case in Lofty, so disable implicit_conversions
359
+ // to match TagLib
360
+ let f = FlacFile :: read_from ( & mut file, ParseOptions :: new ( ) . implicit_conversions ( false ) )
361
+ . unwrap ( ) ;
360
362
361
363
assert_eq ! ( f. vorbis_comments( ) , Some ( & tag) ) ;
362
364
}
You can’t perform that action at this time.
0 commit comments