#[test]
fn rotate_window() {
use crate::RotateWindow;
use std::borrow::Cow;
let rotate_window = RotateWindow::new();
#[cfg(feature = "tmux_0_8")]
let rotate_window = rotate_window.down();
#[cfg(feature = "tmux_0_8")]
let rotate_window = rotate_window.up();
#[cfg(feature = "tmux_3_1")]
let rotate_window = rotate_window.keep_zoomed();
#[cfg(feature = "tmux_0_8")]
let rotate_window = rotate_window.target_window("1");
#[cfg(not(feature = "cmd_alias"))]
let cmd = "rotate-window";
#[cfg(feature = "cmd_alias")]
let cmd = "rotatew";
let mut v = Vec::new();
v.push(cmd);
#[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(feature = "tmux_0_8")]
v.extend_from_slice(&["-t", "1"]);
let v: Vec<Cow<str>> = v.into_iter().map(|a| a.into()).collect();
let rotate_window = rotate_window.build().to_vec();
assert_eq!(rotate_window, v);
}