You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monolith/tests/opts.rs

36 lines
1.7 KiB
Rust

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