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() {
296296 ) ;
297297 tag. push ( String :: from ( "COMMENT" ) , String :: from ( "Comment" ) ) ;
298298 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" ) ) ;
301300 tag. push ( String :: from ( "GENRE" ) , String :: from ( "Genre" ) ) ;
302301 tag. push ( String :: from ( "ISRC" ) , String :: from ( "UKAAA0500001" ) ) ;
303302 tag. push ( String :: from ( "LABEL" ) , String :: from ( "Label 1" ) ) ;
@@ -356,7 +355,10 @@ fn test_properties() {
356355 }
357356 file. rewind ( ) . unwrap ( ) ;
358357 {
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 ( ) ;
360362
361363 assert_eq ! ( f. vorbis_comments( ) , Some ( & tag) ) ;
362364 }
You can’t perform that action at this time.
0 commit comments