#[test]
fn show_buffer() {
use crate::ShowBuffer;
use std::borrow::Cow;
let show_buffer = ShowBuffer::new();
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_2_0")))]
let show_buffer = show_buffer.buffer_index("1");
#[cfg(feature = "tmux_2_0")]
let show_buffer = show_buffer.buffer_name("2");
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_5")))]
let show_buffer = show_buffer.target_session("3");
#[cfg(not(feature = "cmd_alias"))]
let cmd = "show-buffer";
#[cfg(feature = "cmd_alias")]
let cmd = "showb";
let mut v = Vec::new();
v.push(cmd);
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_2_0")))]
v.extend_from_slice(&["-b", "1"]);
#[cfg(feature = "tmux_2_0")]
v.extend_from_slice(&["-b", "2"]);
#[cfg(all(feature = "tmux_0_8", not(feature = "tmux_1_5")))]
v.extend_from_slice(&["-t", "3"]);
let v: Vec<Cow<str>> = v.into_iter().map(|a| a.into()).collect();
let show_buffer = show_buffer.build().to_vec();
assert_eq!(show_buffer, v);
}