Skip to content

Commit b79a19c

Browse files
committed
Tests: Convert EBML tests to test_log
1 parent ffadb09 commit b79a19c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lofty/src/ebml/vint.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ mod tests {
327327
],
328328
];
329329

330-
#[test]
330+
#[test_log::test]
331331
fn bytes_to_vint() {
332332
for representation in VALID_REPRESENTATIONS_OF_2 {
333333
assert_eq!(
@@ -339,7 +339,7 @@ mod tests {
339339
}
340340
}
341341

342-
#[test]
342+
#[test_log::test]
343343
fn vint_to_bytes() {
344344
for representation in VALID_REPRESENTATIONS_OF_2 {
345345
let vint = VInt::parse(&mut Cursor::new(representation), 8).unwrap();
@@ -350,7 +350,7 @@ mod tests {
350350
}
351351
}
352352

353-
#[test]
353+
#[test_log::test]
354354
fn large_integers_should_fail() {
355355
assert!(VInt::from_u64(u64::MAX).is_err());
356356

@@ -361,12 +361,12 @@ mod tests {
361361
}
362362
}
363363

364-
#[test]
364+
#[test_log::test]
365365
fn maximum_possible_representable_vint() {
366366
assert!(VInt::from_u64(u64::MAX >> 8).is_ok());
367367
}
368368

369-
#[test]
369+
#[test_log::test]
370370
fn octet_lengths() {
371371
let n = u64::MAX >> 8;
372372
for i in 1u8..=7 {

lofty/tests/files/matroska.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use lofty::tag::TagType;
77

88
use std::io::Seek;
99

10-
#[test]
10+
#[test_log::test]
1111
fn read() {
1212
// This file contains a tags element
1313
let file = Probe::open("tests/files/assets/minimal/full_test.mka")
@@ -22,7 +22,7 @@ fn read() {
2222
crate::verify_artist!(file, primary_tag, "Foo artist", 1);
2323
}
2424

25-
#[test]
25+
#[test_log::test]
2626
fn write() {
2727
let mut file = temp_file!("tests/files/assets/minimal/full_test.mka");
2828

@@ -51,17 +51,17 @@ fn write() {
5151
crate::set_artist!(tagged_file, tag_mut, TagType::Ebml, "Bar artist", 1 => file, "Foo artist");
5252
}
5353

54-
#[test]
54+
#[test_log::test]
5555
fn remove() {
5656
crate::remove_tag!("tests/files/assets/minimal/full_test.mka", TagType::Ebml);
5757
}
5858

59-
#[test]
59+
#[test_log::test]
6060
fn read_no_properties() {
6161
crate::no_properties_test!("tests/files/assets/minimal/full_test.mka");
6262
}
6363

64-
#[test]
64+
#[test_log::test]
6565
fn read_no_tags() {
6666
crate::no_tag_test!("tests/files/assets/minimal/full_test.mka");
6767
}

0 commit comments

Comments
 (0)