#[test]
fn if_shell() {
use crate::IfShell;
use std::borrow::Cow;
let if_shell = IfShell::new();
#[cfg(feature = "tmux_1_8")]
let if_shell = if_shell.background();
#[cfg(feature = "tmux_2_0")]
let if_shell = if_shell.not_execute();
#[cfg(feature = "tmux_1_8")]
let if_shell = if_shell.target_pane("1");
#[cfg(feature = "tmux_1_5")]
let if_shell = if_shell.shell_command("2");
#[cfg(feature = "tmux_1_5")]
let if_shell = if_shell.command("3");
#[cfg(not(feature = "cmd_alias"))]
let cmd = "if-shell";
#[cfg(feature = "cmd_alias")]
let cmd = "if";
let mut v = Vec::new();
v.push(cmd);
#[cfg(feature = "tmux_1_8")]
v.push("-b");
#[cfg(feature = "tmux_2_0")]
v.push("-F");
#[cfg(feature = "tmux_1_8")]
v.extend_from_slice(&["-t", "1"]);
#[cfg(feature = "tmux_1_5")]
v.push("2");
#[cfg(feature = "tmux_1_5")]
v.push("3");
let v: Vec<Cow<str>> = v.into_iter().map(|a| a.into()).collect();
let if_shell = if_shell.build().to_vec();
assert_eq!(if_shell, v);
}