#[test]
fn set_option() {
use crate::{SetOption, TargetPane};
use std::borrow::Cow;
let target_pane = TargetPane::Raw("1").to_string();
let set_option = SetOption::new();
#[cfg(feature = "tmux_1_0")]
let set_option = set_option.append();
#[cfg(feature = "tmux_2_6")]
let set_option = set_option.format();
#[cfg(feature = "tmux_0_8")]
let set_option = set_option.global();
#[cfg(feature = "tmux_1_8")]
let set_option = set_option.not_overwrite();
#[cfg(feature = "tmux_3_0")]
let set_option = set_option.pane();
#[cfg(feature = "tmux_1_7")]
let set_option = set_option.quiet();
#[cfg(feature = "tmux_1_2")]
let set_option = set_option.server();
#[cfg(feature = "tmux_0_8")]
let set_option = set_option.unset();
#[cfg(feature = "tmux_3_2")]
let set_option = set_option.unset_on_all();
#[cfg(feature = "tmux_1_2")]
let set_option = set_option.window();
#[cfg(feature = "tmux_3_0")]
let set_option = set_option.target_pane(&target_pane);
#[cfg(all(feature = "tmux_1_2", not(feature = "tmux_3_0")))]
let set_option = set_option.target(&target_pane);
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_2")))]
let set_option = set_option.target_session(&target_pane);
#[cfg(feature = "tmux_0_8")]
let set_option = set_option.option("2");
#[cfg(feature = "tmux_0_8")]
let set_option = set_option.value("3");
#[cfg(not(feature = "cmd_alias"))]
let cmd = "set-option";
#[cfg(feature = "cmd_alias")]
let cmd = "set";
let mut s = Vec::new();
s.push(cmd);
#[cfg(feature = "tmux_1_0")]
s.push("-a");
#[cfg(feature = "tmux_2_6")]
s.push("-F");
#[cfg(feature = "tmux_0_8")]
s.push("-g");
#[cfg(feature = "tmux_1_8")]
s.push("-o");
#[cfg(feature = "tmux_3_0")]
s.push("-p");
#[cfg(feature = "tmux_1_7")]
s.push("-q");
#[cfg(feature = "tmux_1_2")]
s.push("-s");
#[cfg(feature = "tmux_0_8")]
s.push("-u");
#[cfg(feature = "tmux_3_2")]
s.push("-U");
#[cfg(feature = "tmux_1_2")]
s.push("-w");
#[cfg(feature = "tmux_3_0")]
s.extend_from_slice(&["-t", "1"]);
#[cfg(all(feature = "tmux_1_2", not(feature = "tmux_3_0")))]
s.extend_from_slice(&["-t", "1"]);
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_2")))]
s.extend_from_slice(&["-t", "1"]);
#[cfg(feature = "tmux_0_8")]
s.push("2");
#[cfg(feature = "tmux_0_8")]
s.push("3");
let s: Vec<Cow<str>> = s.into_iter().map(|a| a.into()).collect();
let set_option = set_option.build().to_vec();
assert_eq!(set_option, s);
}