use cli_clipboard::{ClipboardContext, ClipboardProvider};
use didyoumean::yank;
#[test]
fn yank_test() {
let string = "test";
let not_string = "not test";
let mut ctx: ClipboardContext = ClipboardProvider::new().unwrap();
yank(string);
std::thread::sleep(std::time::Duration::from_secs(1));
let clipboard = format!("{}", ctx.get_contents().unwrap());
assert_eq!(clipboard, string);
ctx.set_contents(not_string.to_owned()).unwrap();
}