#[test] #[cfg(all( any(target_os = "windows", target_os = "linux", target_os = "macos"), feature = "clipboard" ))] fn send_to_clipboard_works() { use cli_clipboard::{ClipboardContext, ClipboardProvider}; let ctx = ClipboardContext::new(); let mut ctx = ctx.unwrap(); let the_string = "Hello, world!"; ctx.set_contents(the_string.to_owned()).unwrap(); assert_eq!(ctx.get_contents().unwrap(), the_string); }