Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khyerdev committed Sep 10, 2024
1 parent e022da9 commit 3fa6bff
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,19 @@ 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);
assert_eq!(args3.c_video_quality, 1440);
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()));
}

Expand Down

0 comments on commit 3fa6bff

Please sign in to comment.