diff --git a/src/lib.rs b/src/lib.rs index 182d096..c52f468 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -216,7 +216,14 @@ fn get_tree() { #[test] fn get_marks() { - // todo!() + let mut sway = Sway::new(env!("SWAYSOCK")).unwrap(); + sway.run_command("unmark").unwrap(); + sway.run_command("mark test").unwrap(); + match sway.get_marks() { + Ok(response) => assert_eq!(response.into_iter().nth(0).unwrap(), "test"), + Err(e) => panic!("{}", e.to_string()), + } + sway.run_command("unmark").unwrap(); } #[test]