From 3fa6bff4e2c00bf4e6284c8a1f4cebd2af49f71b Mon Sep 17 00:00:00 2001 From: khyernet Date: Mon, 9 Sep 2024 22:40:43 -0800 Subject: [PATCH] fix tests --- src/tests.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tests.rs b/src/tests.rs index 55bd6c7..f8ef0e9 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -32,8 +32,7 @@ fn args_get() { assert_eq!(args1.c_video_codec, types::VideoCodec::H264); assert_eq!(args1.c_video_quality, 1080); assert_eq!(args1.c_audio_format, types::AudioFormat::MP3); - assert_eq!(args1.c_audio_only, false); - assert_eq!(args1.c_audio_muted, false); + assert_eq!(args1.c_download_mode, types::DownloadMode::Auto); assert_eq!(args1.c_twitter_gif, false); assert_eq!(args2.c_video_codec, types::VideoCodec::AV1); @@ -41,11 +40,11 @@ fn args_get() { assert_eq!(args3.c_url, Some(url.to_string())); assert_eq!(args4.c_video_codec, types::VideoCodec::VP9); assert_eq!(args4.c_video_quality, 720); - assert_eq!(args5.c_audio_only, true); + assert_eq!(args5.c_download_mode, types::DownloadMode::Audio); assert_eq!(args5.c_audio_format, types::AudioFormat::OGG); assert_eq!(args5.out_filename, Some("foo.ogg".into())); assert_eq!(args6.c_twitter_gif, true); - assert_eq!(args6.c_audio_muted, true); + assert_eq!(args6.c_download_mode, types::DownloadMode::Mute); assert_eq!(args6.out_filename, Some("bar.gif".into())); }