From e16d899c14a7070a5a1f65e98cb416214fea6657 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sat, 23 Jul 2022 21:06:03 -0700 Subject: [PATCH] Update tests to match intended behavior. --- src/movielibrary_test.rs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/movielibrary_test.rs b/src/movielibrary_test.rs index 7f45d92..0a64d83 100644 --- a/src/movielibrary_test.rs +++ b/src/movielibrary_test.rs @@ -335,7 +335,7 @@ fn test_fullmetal() -> Result<(), Box> { } #[test] -fn test_keep_lower_res_higher_bit_rate() -> Result<(), Box> { +fn test_keep_higher_res_lower_bit_rate() -> Result<(), Box> { let mut movies = Movies { movies: vec![ build_movie(vec![( @@ -361,15 +361,17 @@ fn test_keep_lower_res_higher_bit_rate() -> Result<(), Box> { let got = movies.duplicate_candidates(); let want = vec![( build_movie(vec![( - "X Men The Last Stand (2006)/X.Men.The.Last.Stand.2006.1080p.BluRay.x264.DTS-ES.PRoDJi.mkv", - (1920, 800), - 11349705, - )]), - vec![build_movie(vec![( "X Men The Last Stand (2006)/948f08a4ba784626ac13de77b77559dd.mkv", (1920, 1080), 6574160, - )])], + )]), + vec![ + build_movie(vec![( + "X Men The Last Stand (2006)/X.Men.The.Last.Stand.2006.1080p.BluRay.x264.DTS-ES.PRoDJi.mkv", + (1920, 800), + 11349705, + )]) + ], )]; validate_duplicates(got, want); Ok(())