added_types #26
18
src/meta.rs
18
src/meta.rs
@@ -957,7 +957,11 @@ mod tests {
|
||||
assert!(found, "Meta information was not found {:?}", track_total);
|
||||
let new_track_total = String::from("5");
|
||||
|
||||
match set_meta(types::Type::TrackCount, &new_filepath, &new_track_total) {
|
||||
match set_meta(
|
||||
types::Type::TrackCount,
|
||||
&new_filepath,
|
||||
&new_track_total,
|
||||
) {
|
||||
Ok(m) => {
|
||||
assert_eq!(
|
||||
new_track_total, m,
|
||||
@@ -1010,9 +1014,17 @@ mod tests {
|
||||
assert!(found, "Meta information was not found {:?}", disc_total);
|
||||
let new_disc_total = String::from("2");
|
||||
|
||||
match set_meta(types::Type::DiscCount, &new_filepath, &new_disc_total) {
|
||||
match set_meta(
|
||||
types::Type::DiscCount,
|
||||
&new_filepath,
|
||||
&new_disc_total,
|
||||
) {
|
||||
Ok(m) => {
|
||||
assert_eq!(new_disc_total, m, "New disc_total does not match {:?}", m);
|
||||
assert_eq!(
|
||||
new_disc_total, m,
|
||||
"New disc_total does not match {:?}",
|
||||
m
|
||||
);
|
||||
}
|
||||
Err(err) => {
|
||||
assert!(false, "Error: {:?}", err);
|
||||
|
Reference in New Issue
Block a user