@@ -17,7 +17,7 @@ fn test_audio_properties_xing_header_cbr() {
1717 let f = get_file :: < MpegFile > ( "tests/taglib/data/lame_cbr.mp3" ) ;
1818
1919 assert_eq ! ( f. properties( ) . duration( ) . as_secs( ) , 1887 ) ; // TODO: Off by 9
20- assert_eq ! ( f. properties( ) . duration( ) . as_millis( ) , 1887164 ) ;
20+ assert_eq ! ( f. properties( ) . duration( ) . as_millis( ) , 1_887_164 ) ;
2121 assert_eq ! ( f. properties( ) . audio_bitrate( ) , 64 ) ;
2222 assert_eq ! ( f. properties( ) . channels( ) , 1 ) ;
2323 assert_eq ! ( f. properties( ) . sample_rate( ) , 44100 ) ;
@@ -30,7 +30,7 @@ fn test_audio_properties_xing_header_vbr() {
3030 let f = get_file :: < MpegFile > ( "tests/taglib/data/lame_vbr.mp3" ) ;
3131
3232 assert_eq ! ( f. properties( ) . duration( ) . as_secs( ) , 1887 ) ; // TODO: Off by 9
33- assert_eq ! ( f. properties( ) . duration( ) . as_millis( ) , 1887164 ) ;
33+ assert_eq ! ( f. properties( ) . duration( ) . as_millis( ) , 1_887_164 ) ;
3434 assert_eq ! ( f. properties( ) . audio_bitrate( ) , 70 ) ;
3535 assert_eq ! ( f. properties( ) . channels( ) , 1 ) ;
3636 assert_eq ! ( f. properties( ) . sample_rate( ) , 44100 ) ;
@@ -43,7 +43,7 @@ fn test_audio_properties_vbri_header() {
4343 let f = get_file :: < MpegFile > ( "tests/taglib/data/rare_frames.mp3" ) ;
4444
4545 assert_eq ! ( f. properties( ) . duration( ) . as_secs( ) , 222 ) ; // TODO: Off by 1
46- assert_eq ! ( f. properties( ) . duration( ) . as_millis( ) , 222198 ) ;
46+ assert_eq ! ( f. properties( ) . duration( ) . as_millis( ) , 222_198 ) ;
4747 assert_eq ! ( f. properties( ) . audio_bitrate( ) , 233 ) ;
4848 assert_eq ! ( f. properties( ) . channels( ) , 2 ) ;
4949 assert_eq ! ( f. properties( ) . sample_rate( ) , 44100 ) ;
@@ -55,7 +55,7 @@ fn test_audio_properties_vbri_header() {
5555fn test_audio_properties_no_vbr_headers ( ) {
5656 let f = get_file :: < MpegFile > ( "tests/taglib/data/bladeenc.mp3" ) ;
5757
58- assert_eq ! ( f. properties( ) . duration( ) . as_secs( ) , 3 ) ; // Off by 1
58+ assert_eq ! ( f. properties( ) . duration( ) . as_secs( ) , 3 ) ;
5959 assert_eq ! ( f. properties( ) . duration( ) . as_millis( ) , 3553 ) ;
6060 assert_eq ! ( f. properties( ) . audio_bitrate( ) , 64 ) ;
6161 assert_eq ! ( f. properties( ) . channels( ) , 1 ) ;
@@ -102,7 +102,7 @@ fn test_skip_invalid_frames_3() {
102102fn test_version_2_duration_with_xing_header ( ) {
103103 let f = get_file :: < MpegFile > ( "tests/taglib/data/mpeg2.mp3" ) ;
104104 assert_eq ! ( f. properties( ) . duration( ) . as_secs( ) , 5387 ) ; // TODO: Off by 15
105- assert_eq ! ( f. properties( ) . duration( ) . as_millis( ) , 5387285 ) ;
105+ assert_eq ! ( f. properties( ) . duration( ) . as_millis( ) , 5_387_285 ) ;
106106}
107107
108108#[ test]
0 commit comments