#[test]
fn link_window() {
use crate::LinkWindow;
use std::borrow::Cow;
let link_window = LinkWindow::new();
#[cfg(feature = "tmux_2_1")]
let link_window = link_window.after();
#[cfg(feature = "tmux_3_2")]
let link_window = link_window.before();
#[cfg(feature = "tmux_0_8")]
let link_window = link_window.detached();
#[cfg(feature = "tmux_0_8")]
let link_window = link_window.kill();
#[cfg(feature = "tmux_0_8")]
let link_window = link_window.src_window("1");
#[cfg(feature = "tmux_0_8")]
let link_window = link_window.dst_window("2");
#[cfg(not(feature = "cmd_alias"))]
let cmd = "link-window";
#[cfg(feature = "cmd_alias")]
let cmd = "linkw";
let mut v = Vec::new();
v.push(cmd);
#[cfg(feature = "tmux_2_1")]
v.push("-a");
#[cfg(feature = "tmux_3_2")]
v.push("-b");
#[cfg(feature = "tmux_0_8")]
v.push("-d");
#[cfg(feature = "tmux_0_8")]
v.push("-k");
#[cfg(feature = "tmux_0_8")]
v.extend_from_slice(&["-s", "1"]);
#[cfg(feature = "tmux_0_8")]
v.extend_from_slice(&["-t", "2"]);
let v: Vec<Cow<str>> = v.into_iter().map(|a| a.into()).collect();
let link_window = link_window.build().to_vec();
assert_eq!(link_window, v);
}