#[test]
fn send_keys() {
use crate::{SendKeys, TargetPaneExt};
use std::borrow::Cow;
let target_pane = TargetPaneExt::raw("2").to_string();
let send_keys = SendKeys::new();
#[cfg(feature = "tmux_3_1")]
let send_keys = send_keys.expand_formats();
#[cfg(feature = "tmux_3_0")]
let send_keys = send_keys.hex();
#[cfg(feature = "tmux_3_4")]
let send_keys = send_keys.client();
#[cfg(feature = "tmux_1_7")]
let send_keys = send_keys.disable_lookup();
#[cfg(feature = "tmux_2_1")]
let send_keys = send_keys.mouse_event();
#[cfg(feature = "tmux_1_6")]
let send_keys = send_keys.copy_mode();
#[cfg(feature = "tmux_2_4")]
let send_keys = send_keys.reset();
#[cfg(feature = "tmux_2_4")]
let send_keys = send_keys.repeat_count(1);
#[cfg(feature = "tmux_3_4")]
let send_keys = send_keys.target_client(&target_pane);
#[cfg(feature = "tmux_1_6")]
let send_keys = send_keys.target_pane(&target_pane);
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_6")))]
let send_keys = send_keys.target_window(&target_pane);
#[cfg(feature = "tmux_0_8")]
let send_keys = send_keys.key("3");
#[cfg(not(feature = "cmd_alias"))]
let cmd = "send-keys";
#[cfg(feature = "cmd_alias")]
let cmd = "send";
let mut s = Vec::new();
s.push(cmd);
#[cfg(feature = "tmux_3_1")]
s.push("-F");
#[cfg(feature = "tmux_3_0")]
s.push("-H");
#[cfg(feature = "tmux_3_4")]
s.push("-K");
#[cfg(feature = "tmux_1_7")]
s.push("-l");
#[cfg(feature = "tmux_2_1")]
s.push("-M");
#[cfg(feature = "tmux_1_6")]
s.push("-R");
#[cfg(feature = "tmux_2_4")]
s.push("-X");
#[cfg(feature = "tmux_2_4")]
s.extend_from_slice(&["-N", "1"]);
#[cfg(feature = "tmux_3_4")]
s.extend_from_slice(&["-c", "2"]);
#[cfg(feature = "tmux_1_6")]
s.extend_from_slice(&["-t", "2"]);
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_6")))]
s.extend_from_slice(&["-t", "2"]);
s.push("3");
let s: Vec<Cow<str>> = s.into_iter().map(|a| a.into()).collect();
let send_keys = send_keys.build().to_vec();
assert_eq!(send_keys, s);
}