#[test]
fn get_pane_option() {
use crate::{GetPaneOption, GetPaneOptionTr, GetUserOption};
#[cfg(not(feature = "cmd_alias"))]
let cmd = "show-options";
#[cfg(feature = "cmd_alias")]
let cmd = "show";
let target = ":";
let cmd = format!("{} -p -t {}", cmd, target);
#[cfg(feature = "tmux_3_0")]
{
let origin = format!("{} {}", cmd, "allow-rename");
let get_option = GetPaneOption::allow_rename(Some(target)).to_string();
assert_eq!(origin, get_option);
}
#[cfg(feature = "tmux_3_0")]
{
let origin = format!("{} {}", cmd, "alternate-screen");
let get_option = GetPaneOption::alternate_screen(Some(target)).to_string();
assert_eq!(origin, get_option);
}
#[cfg(feature = "tmux_3_0")]
{
let origin = format!("{} {}", cmd, "remain-on-exit");
let get_option = GetPaneOption::remain_on_exit(Some(target)).to_string();
assert_eq!(origin, get_option);
}
#[cfg(feature = "tmux_3_0")]
{
let origin = format!("{} {}", cmd, "window-active-style");
let get_option = GetPaneOption::window_active_style(Some(target)).to_string();
assert_eq!(origin, get_option);
}
#[cfg(feature = "tmux_3_0")]
{
let origin = format!("{} {}", cmd, "window-style");
let get_option = GetPaneOption::window_style(Some(target)).to_string();
assert_eq!(origin, get_option);
}
#[cfg(feature = "tmux_3_2")]
{
let origin = format!("{} {}", cmd, "synchronize-panes");
let get_option = GetPaneOption::synchronize_panes(Some(target)).to_string();
assert_eq!(origin, get_option);
}
{
let origin = format!("{} {}", cmd, "@user-option-name");
let get_option =
GetPaneOption::user_option_ext(Some(target), "user-option-name").to_string();
assert_eq!(origin, get_option);
}
}