Update tests to match intended behavior.
This commit is contained in:
parent
e06d2419e5
commit
e16d899c14
@ -335,7 +335,7 @@ fn test_fullmetal() -> Result<(), Box<dyn Error>> {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_keep_lower_res_higher_bit_rate() -> Result<(), Box<dyn Error>> {
|
||||
fn test_keep_higher_res_lower_bit_rate() -> Result<(), Box<dyn Error>> {
|
||||
let mut movies = Movies {
|
||||
movies: vec![
|
||||
build_movie(vec![(
|
||||
@ -361,15 +361,17 @@ fn test_keep_lower_res_higher_bit_rate() -> Result<(), Box<dyn Error>> {
|
||||
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(())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user