#[test]
fn show_options() {
use crate::{ShowOptions, TargetPane};
use std::borrow::Cow;
let target_pane = TargetPane::Raw("1").to_string();
let show_options = ShowOptions::new();
#[cfg(feature = "tmux_3_0")]
let show_options = show_options.include_inherited();
#[cfg(feature = "tmux_1_2")]
let show_options = show_options.global();
#[cfg(feature = "tmux_3_0")]
let show_options = show_options.hooks();
#[cfg(feature = "tmux_3_0")]
let show_options = show_options.pane();
#[cfg(feature = "tmux_1_8")]
let show_options = show_options.quiet();
#[cfg(feature = "tmux_1_2")]
let show_options = show_options.server();
#[cfg(feature = "tmux_1_8")]
let show_options = show_options.value();
#[cfg(feature = "tmux_1_2")]
let show_options = show_options.window();
let show_options = show_options.target(&target_pane);
#[cfg(feature = "tmux_1_7")]
let show_options = show_options.option("2");
#[cfg(not(feature = "cmd_alias"))]
let cmd = "show-options";
#[cfg(feature = "cmd_alias")]
let cmd = "show";
let mut s = Vec::new();
s.push(cmd);
#[cfg(feature = "tmux_3_0")]
s.push("-A");
#[cfg(feature = "tmux_1_2")]
s.push("-g");
#[cfg(feature = "tmux_3_0")]
s.push("-H");
#[cfg(feature = "tmux_3_0")]
s.push("-p");
#[cfg(feature = "tmux_1_8")]
s.push("-q");
#[cfg(feature = "tmux_1_2")]
s.push("-s");
#[cfg(feature = "tmux_1_8")]
s.push("-v");
#[cfg(feature = "tmux_1_2")]
s.push("-w");
s.extend_from_slice(&["-t", "1"]);
#[cfg(feature = "tmux_1_7")]
s.push("2");
let s: Vec<Cow<str>> = s.into_iter().map(|a| a.into()).collect();
let show_options = show_options.build().to_vec();
assert_eq!(show_options, s);
}