#[test]
fn switch_client() {
use crate::SwitchClient;
use std::borrow::Cow;
let switch_client = SwitchClient::new();
#[cfg(feature = "tmux_2_1")]
let switch_client = switch_client.not_update_env();
#[cfg(feature = "tmux_1_5")]
let switch_client = switch_client.last_session();
#[cfg(feature = "tmux_1_5")]
let switch_client = switch_client.next_session();
#[cfg(feature = "tmux_1_5")]
let switch_client = switch_client.previous_session();
#[cfg(feature = "tmux_1_6")]
let switch_client = switch_client.read_only();
#[cfg(feature = "tmux_3_1")]
let switch_client = switch_client.keep_zoomed();
#[cfg(feature = "tmux_0_8")]
let switch_client = switch_client.target_client("1");
#[cfg(feature = "tmux_0_8")]
let switch_client = switch_client.target_session("2");
#[cfg(feature = "tmux_2_1")]
let switch_client = switch_client.key_table("3");
#[cfg(not(feature = "cmd_alias"))]
let cmd = "switch-client";
#[cfg(feature = "cmd_alias")]
let cmd = "switchc";
let mut v = Vec::new();
v.push(cmd);
#[cfg(feature = "tmux_2_1")]
v.push("-E");
#[cfg(feature = "tmux_1_5")]
v.push("-l");
#[cfg(feature = "tmux_1_5")]
v.push("-n");
#[cfg(feature = "tmux_1_5")]
v.push("-p");
#[cfg(feature = "tmux_1_6")]
v.push("-r");
#[cfg(feature = "tmux_3_1")]
v.push("-Z");
#[cfg(feature = "tmux_0_8")]
v.extend_from_slice(&["-c", "1"]);
#[cfg(feature = "tmux_0_8")]
v.extend_from_slice(&["-t", "2"]);
#[cfg(feature = "tmux_2_1")]
v.extend_from_slice(&["-T", "3"]);
let v: Vec<Cow<str>> = v.into_iter().map(|a| a.into()).collect();
let switch_client = switch_client.build().to_vec();
assert_eq!(switch_client, v);
}