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 @@ -190,7 +190,6 @@ fn test_remove_all_pictures() {
190
190
}
191
191
192
192
#[ test]
193
- #[ ignore] // TODO: `VorbisComments::get` is case-sensitive for now, it shouldn't be.
194
193
fn test_repeated_save_1 ( ) {
195
194
let mut file = temp_file ! ( "tests/taglib/data/silence-44-s.flac" ) ;
196
195
{
@@ -367,23 +366,26 @@ fn test_properties() {
367
366
file. rewind ( ) . unwrap ( ) ;
368
367
f. vorbis_comments ( ) . unwrap ( ) . save_to ( & mut file) . unwrap ( ) ;
369
368
}
369
+ file. rewind ( ) . unwrap ( ) ;
370
370
{
371
- file. rewind ( ) . unwrap ( ) ;
372
371
let f = FlacFile :: read_from ( & mut file, ParseOptions :: new ( ) ) . unwrap ( ) ;
373
372
374
373
assert_eq ! ( f. vorbis_comments( ) , Some ( & tag) ) ;
375
374
}
376
375
}
377
376
378
377
#[ test]
379
- #[ ignore] // TODO: Keys are not yet validated
380
378
fn test_invalid ( ) {
381
379
let mut file = temp_file ! ( "tests/taglib/data/silence-44-s.flac" ) ;
382
380
let mut f = FlacFile :: read_from ( & mut file, ParseOptions :: new ( ) ) . unwrap ( ) ;
383
381
382
+ // NOTE: In TagLib, there's a `setProperties` method. This is equivalent.
383
+ f. vorbis_comments_mut ( ) . unwrap ( ) . clear ( ) ;
384
+
384
385
f. vorbis_comments_mut ( )
385
386
. unwrap ( )
386
387
. push ( String :: from ( "H\x00 c4\x00 d6" ) , String :: from ( "bla" ) ) ;
388
+ assert ! ( f. vorbis_comments( ) . unwrap( ) . is_empty( ) ) ;
387
389
}
388
390
389
391
#[ test]
You can’t perform that action at this time.
0 commit comments