summaryrefslogtreecommitdiff
path: root/copypasta
diff options
context:
space:
mode:
authorTheodore Dubois <tblodt@icloud.com>2019-04-28 06:24:58 -0700
committerChristian Duerr <chrisduerr@users.noreply.github.com>2019-04-28 13:24:58 +0000
commitdbd8538762ef8968a493e1bf996e8693479ca783 (patch)
tree32ac2a6a5e01238a272d4ba534551d2e42903c7a /copypasta
parent9c6d12ea2c863ba76015bdedc00db13b7307725a (diff)
downloadalacritty-dbd8538762ef8968a493e1bf996e8693479ca783.tar.gz
alacritty-dbd8538762ef8968a493e1bf996e8693479ca783.zip
Split alacritty into a separate crates
The crate containing the entry point is called alacritty, and the crate containing everything else is called alacritty_terminal.
Diffstat (limited to 'copypasta')
-rw-r--r--copypasta/src/x11.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/copypasta/src/x11.rs b/copypasta/src/x11.rs
index 3bcf8455..0bb769a1 100644
--- a/copypasta/src/x11.rs
+++ b/copypasta/src/x11.rs
@@ -142,24 +142,3 @@ impl Clipboard {
}
}
}
-
-#[cfg(test)]
-mod tests {
- use super::Clipboard;
- use {Load, Store};
-
- #[test]
- fn clipboard_works() {
- let mut clipboard = Clipboard::new().expect("create clipboard");
- let arst = "arst";
- let oien = "oien";
- clipboard.store_primary(arst).expect("store selection");
- clipboard.store_selection(oien).expect("store selection");
-
- let selection = clipboard.load_selection().expect("load selection");
- let primary = clipboard.load_primary().expect("load selection");
-
- assert_eq!(arst, primary);
- assert_eq!(oien, selection);
- }
-}