@@ -48,7 +48,7 @@ fn test_utf16be_delimiter() {
48
48
String :: from ( "Foo\0 Bar" ) ,
49
49
) ;
50
50
51
- let data = f. as_bytes ( ) ;
51
+ let data = f. as_bytes ( false ) ;
52
52
53
53
let no_bom_be_data = b"\x02 \
54
54
\0 F\0 o\0 o\0 \0 \
@@ -74,7 +74,7 @@ fn test_utf16_delimiter() {
74
74
String :: from ( "Foo\0 Bar" ) ,
75
75
) ;
76
76
77
- let data = f. as_bytes ( ) ;
77
+ let data = f. as_bytes ( false ) ;
78
78
79
79
// TODO: TagLib writes a BOM to every string, making the output identical to `mutli_bom_le_data`,
80
80
// rather than `single_bom_le_data` in Lofty's case. Not sure if we should be writing the BOM
@@ -507,7 +507,7 @@ fn test_render_user_url_link_frame() {
507
507
) ;
508
508
509
509
assert_eq ! (
510
- f. as_bytes( ) ,
510
+ f. as_bytes( false ) ,
511
511
b"\
512
512
\x00 \
513
513
foo\x00 \
@@ -543,7 +543,7 @@ fn test_render_ownership_frame() {
543
543
) ;
544
544
545
545
assert_eq ! (
546
- f. as_bytes( ) . unwrap( ) ,
546
+ f. as_bytes( false ) . unwrap( ) ,
547
547
b"\
548
548
\x00 \
549
549
GBP1.99\x00 \
@@ -721,7 +721,7 @@ fn test_render_comments_frame() {
721
721
) ;
722
722
723
723
assert_eq ! (
724
- f. as_bytes( ) . unwrap( ) ,
724
+ f. as_bytes( false ) . unwrap( ) ,
725
725
b"\
726
726
\x01 \
727
727
eng\
@@ -807,7 +807,7 @@ fn test_render_user_text_identification_frame() {
807
807
let mut f = ExtendedTextFrame :: new ( TextEncoding :: Latin1 , String :: new ( ) , String :: from ( "Text" ) ) ;
808
808
809
809
assert_eq ! (
810
- f. as_bytes( ) ,
810
+ f. as_bytes( false ) ,
811
811
b"\
812
812
\x00 \
813
813
\x00 \
@@ -817,7 +817,7 @@ fn test_render_user_text_identification_frame() {
817
817
f. description = String :: from ( "Description" ) ;
818
818
819
819
assert_eq ! (
820
- f. as_bytes( ) ,
820
+ f. as_bytes( false ) ,
821
821
b"\
822
822
\x00 \
823
823
Description\x00 \
0 commit comments