mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 18:46:49 +00:00
Fix test
This commit is contained in:
parent
f464d69ff8
commit
f8bc9be284
1 changed files with 3 additions and 3 deletions
|
@ -312,15 +312,15 @@ mod tests {
|
|||
#[test]
|
||||
fn test_parse_context() {
|
||||
let mut expected = KeyContext::default();
|
||||
expected.set("foo", "bar");
|
||||
expected.add("baz");
|
||||
expected.set("foo", "bar");
|
||||
assert_eq!(KeyContext::parse("baz foo=bar").unwrap(), expected);
|
||||
assert_eq!(KeyContext::parse("foo = bar baz").unwrap(), expected);
|
||||
assert_eq!(KeyContext::parse("baz foo = bar").unwrap(), expected);
|
||||
assert_eq!(
|
||||
KeyContext::parse(" baz foo = bar baz").unwrap(),
|
||||
expected
|
||||
);
|
||||
assert_eq!(KeyContext::parse(" foo = bar baz").unwrap(), expected);
|
||||
assert_eq!(KeyContext::parse(" baz foo = bar").unwrap(), expected);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue