#[test]
fn swap_pane() {
use crate::SwapPane;
use std::borrow::Cow;
let swap_pane = SwapPane::new();
#[cfg(feature = "tmux_0_8")]
let swap_pane = swap_pane.detached();
#[cfg(feature = "tmux_0_8")]
let swap_pane = swap_pane.previous_pane();
#[cfg(feature = "tmux_0_8")]
let swap_pane = swap_pane.next_pane();
#[cfg(feature = "tmux_3_1")]
let swap_pane = swap_pane.keep_zoomed();
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_5")))]
let swap_pane = swap_pane.src_index("1");
#[cfg(feature = "tmux_1_5")]
let swap_pane = swap_pane.src_pane("2");
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_5")))]
let swap_pane = swap_pane.dst_index("3");
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_5")))]
let swap_pane = swap_pane.target_window("4");
#[cfg(feature = "tmux_1_5")]
let swap_pane = swap_pane.dst_pane("5");
#[cfg(not(feature = "cmd_alias"))]
let cmd = "swap-pane";
#[cfg(feature = "cmd_alias")]
let cmd = "swapp";
let mut v = Vec::new();
v.push(cmd);
#[cfg(feature = "tmux_0_8")]
v.push("-d");
#[cfg(feature = "tmux_0_8")]
v.push("-D");
#[cfg(feature = "tmux_0_8")]
v.push("-U");
#[cfg(feature = "tmux_3_1")]
v.push("-Z");
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_5")))]
v.extend_from_slice(&["-p", "1"]);
#[cfg(feature = "tmux_1_5")]
v.extend_from_slice(&["-s", "2"]);
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_5")))]
v.extend_from_slice(&["-q", "3"]);
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_5")))]
v.extend_from_slice(&["-t", "4"]);
#[cfg(feature = "tmux_1_5")]
v.extend_from_slice(&["-t", "5"]);
let v: Vec<Cow<str>> = v.into_iter().map(|a| a.into()).collect();
let swap_pane = swap_pane.build().to_vec();
assert_eq!(swap_pane, v);
}