added test case for get_marks ipc message
This commit is contained in:
parent
5d6ddfbf6b
commit
03553661d6
@ -216,7 +216,14 @@ fn get_tree() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn get_marks() {
|
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]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user