#[test]
fn choose_tree() {
use crate::ChooseTree;
use std::borrow::Cow;
let choose_tree = ChooseTree::new();
#[cfg(feature = "tmux_2_7")]
let choose_tree = choose_tree.all();
#[cfg(feature = "tmux_2_6")]
let choose_tree = choose_tree.without_preview();
#[cfg(feature = "tmux_3_1")]
let choose_tree = choose_tree.reverse_sort_order();
#[cfg(feature = "tmux_1_7")]
let choose_tree = choose_tree.collapsed_sessions();
#[cfg(all(feature = "tmux_1_8", not(feature = "tmux_2_6")))]
let choose_tree = choose_tree.expanded_sessions();
#[cfg(feature = "tmux_1_7")]
let choose_tree = choose_tree.collapsed_windows();
#[cfg(feature = "tmux_3_6")]
let choose_tree = choose_tree.disable_confirmation();
#[cfg(feature = "tmux_2_7")]
let choose_tree = choose_tree.zoom();
#[cfg(feature = "tmux_2_6")]
let choose_tree = choose_tree.format("1");
#[cfg(feature = "tmux_2_6")]
let choose_tree = choose_tree.filter("2");
#[cfg(feature = "tmux_3_2")]
let choose_tree = choose_tree.key_format("3");
#[cfg(feature = "tmux_2_6")]
let choose_tree = choose_tree.sort_order("4");
#[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_6")))]
let choose_tree = choose_tree.session_template("5");
#[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_6")))]
let choose_tree = choose_tree.window_template("6");
#[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_6")))]
let choose_tree = choose_tree.session_format("7");
#[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_6")))]
let choose_tree = choose_tree.window_format("8");
#[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_6")))]
let choose_tree = choose_tree.target_window("9");
#[cfg(feature = "tmux_2_6")]
let choose_tree = choose_tree.target_pane("10");
#[cfg(feature = "tmux_2_6")]
let choose_tree = choose_tree.template("11");
let cmd = "choose-tree";
let mut v = Vec::new();
v.push(cmd);
#[cfg(feature = "tmux_2_7")]
v.push("-G");
#[cfg(feature = "tmux_2_6")]
v.push("-N");
#[cfg(feature = "tmux_3_1")]
v.push("-r");
#[cfg(feature = "tmux_1_7")]
v.push("-s");
#[cfg(all(feature = "tmux_1_8", not(feature = "tmux_2_6")))]
v.push("-u");
#[cfg(feature = "tmux_1_7")]
v.push("-w");
#[cfg(feature = "tmux_3_6")]
v.push("-y");
#[cfg(feature = "tmux_2_7")]
v.push("-Z");
#[cfg(feature = "tmux_2_6")]
v.extend_from_slice(&["-F", "1"]);
#[cfg(feature = "tmux_2_6")]
v.extend_from_slice(&["-f", "2"]);
#[cfg(feature = "tmux_3_2")]
v.extend_from_slice(&["-K", "3"]);
#[cfg(feature = "tmux_2_6")]
v.extend_from_slice(&["-O", "4"]);
#[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_6")))]
v.extend_from_slice(&["-b", "5"]);
#[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_6")))]
v.extend_from_slice(&["-c", "6"]);
#[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_6")))]
v.extend_from_slice(&["-S", "7"]);
#[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_6")))]
v.extend_from_slice(&["-W", "8"]);
#[cfg(all(feature = "tmux_1_7", not(feature = "tmux_2_6")))]
v.extend_from_slice(&["-t", "9"]);
#[cfg(feature = "tmux_2_6")]
v.extend_from_slice(&["-t", "10"]);
#[cfg(feature = "tmux_2_6")]
v.push("11");
let v: Vec<Cow<str>> = v.into_iter().map(|a| a.into()).collect();
let choose_tree = choose_tree.build().to_vec();
assert_eq!(choose_tree, v);
}