#[test]
fn kill_pane() {
use crate::KillPane;
use std::borrow::Cow;
let kill_pane = KillPane::new();
#[cfg(feature = "tmux_1_5")]
let kill_pane = kill_pane.all();
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_5")))]
let kill_pane = kill_pane.target_window("1");
#[cfg(feature = "tmux_1_5")]
let kill_pane = kill_pane.target_pane("2");
#[cfg(not(feature = "cmd_alias"))]
let cmd = "kill-pane";
#[cfg(feature = "cmd_alias")]
let cmd = "killp";
let mut v = Vec::new();
v.push(cmd);
#[cfg(feature = "tmux_1_5")]
v.push("-a");
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_5")))]
v.extend_from_slice(&["-t", "1"]);
#[cfg(feature = "tmux_1_5")]
v.extend_from_slice(&["-t", "2"]);
let v: Vec<Cow<str>> = v.into_iter().map(|a| a.into()).collect();
let kill_pane = kill_pane.build().to_vec();
assert_eq!(kill_pane, v);
}