#[test]
fn last_pane() {
use crate::LastPane;
use std::borrow::Cow;
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_5")]
let last_pane = last_pane.target_window("1");
#[cfg(not(feature = "cmd_alias"))]
let cmd = "last-pane";
#[cfg(feature = "cmd_alias")]
let cmd = "lastp";
let mut v = Vec::new();
v.push(cmd);
#[cfg(feature = "tmux_2_0")]
v.push("-d");
#[cfg(feature = "tmux_2_0")]
v.push("-e");
#[cfg(feature = "tmux_3_1")]
v.push("-Z");
#[cfg(feature = "tmux_1_5")]
v.extend_from_slice(&["-t", "1"]);
let v: Vec<Cow<str>> = v.into_iter().map(|a| a.into()).collect();
let last_pane = last_pane.build().to_vec();
assert_eq!(last_pane, v);
}