35 lines
1.8 KiB
Rust
35 lines
1.8 KiB
Rust
// ██████╗ █████╗ ███████╗███████╗██╗███╗ ██╗ ██████╗
|
|
// ██╔══██╗██╔══██╗██╔════╝██╔════╝██║████╗ ██║██╔════╝
|
|
// ██████╔╝███████║███████╗███████╗██║██╔██╗ ██║██║ ███╗
|
|
// ██╔═══╝ ██╔══██║╚════██║╚════██║██║██║╚██╗██║██║ ██║
|
|
// ██║ ██║ ██║███████║███████║██║██║ ╚████║╚██████╔╝
|
|
// ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝╚═╝ ╚═══╝ ╚═════╝
|
|
|
|
#[cfg(test)]
|
|
mod passing {
|
|
use monolith::opts::Options;
|
|
|
|
#[test]
|
|
fn defaults() {
|
|
let options: Options = Options::default();
|
|
|
|
assert_eq!(options.no_audio, false);
|
|
assert_eq!(options.base_url, None);
|
|
assert_eq!(options.no_css, false);
|
|
assert_eq!(options.charset, None);
|
|
assert_eq!(options.no_frames, false);
|
|
assert_eq!(options.no_fonts, false);
|
|
assert_eq!(options.no_images, false);
|
|
assert_eq!(options.isolate, false);
|
|
assert_eq!(options.no_js, false);
|
|
assert_eq!(options.insecure, false);
|
|
assert_eq!(options.no_metadata, false);
|
|
assert_eq!(options.output, "".to_string());
|
|
assert_eq!(options.silent, false);
|
|
assert_eq!(options.timeout, 0);
|
|
assert_eq!(options.user_agent, None);
|
|
assert_eq!(options.no_video, false);
|
|
|
|
assert_eq!(options.target, "".to_string());
|
|
}
|
|
}
|