#[test]
fn last_pane() {
use crate::{LastPane, TargetWindow};
use std::borrow::Cow;
let target_window = TargetWindow::Raw("1").to_string();
let last_pane = LastPane::new();
#[cfg(feature = "tmux_2_0")]
let last_pane = last_pane.disable();
#[cfg(feature = "tmux_2_0")]
let last_pane = last_pane.enable();
#[cfg(feature = "tmux_3_1")]
let last_pane = last_pane.keep_zoomed();
#[cfg(feature = "tmux_1_4")]
let last_pane = last_pane.target_window(&target_window);
#[cfg(not(feature = "cmd_alias"))]
let cmd = "last-pane";
#[cfg(feature = "cmd_alias")]
let cmd = "lastp";
let mut s = Vec::new();
s.push(cmd);
#[cfg(feature = "tmux_2_0")]
s.push("-d");
#[cfg(feature = "tmux_2_0")]
s.push("-e");
#[cfg(feature = "tmux_3_1")]
s.push("-Z");
#[cfg(feature = "tmux_1_4")]
s.extend_from_slice(&["-t", "1"]);
let s: Vec<Cow<str>> = s.into_iter().map(|a| a.into()).collect();
let last_pane = last_pane.build().to_vec();
assert_eq!(last_pane, s);
}