Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roosta committed Jan 3, 2020
1 parent 5938bf7 commit 8edb11a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ pub fn update_tree(x_conn: &xcb::Connection, i3_conn: &mut I3Connection, options

let separator = match options.general.get("separator") {
Some(s) => s,
None => "|"
None => " | "
};

let classes = get_classes(&workspace, &x_conn, options)?.join(separator);
Expand Down Expand Up @@ -271,7 +271,7 @@ mod tests {
}
}
}
assert_eq!(name, String::from("1 Gpick | XTerm "));
assert_eq!(name, String::from("1 Gpick | XTerm"));
Ok(())
}

Expand Down Expand Up @@ -302,7 +302,7 @@ mod tests {
.iter()
.map(|id| super::get_class(&x_conn, *id, &options))
.collect();
assert_eq!(result?, vec![" Gpick ", " XTerm "]);
assert_eq!(result?, vec!["Gpick", "XTerm"]);
Ok(())
}

Expand All @@ -318,7 +318,7 @@ mod tests {
for workspace in workspaces {
result.push(super::get_classes(&workspace, &x_conn, &options)?);
}
let expected = vec![vec![], vec![" Gpick ", " XTerm "]];
let expected = vec![vec![], vec!["Gpick", "XTerm"]];
assert_eq!(result, expected);
Ok(())
}
Expand Down

0 comments on commit 8edb11a

Please sign in to comment.