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