From f8bc9be2841d9f5e54f73de48fe1682ecddf6de9 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Mon, 13 Nov 2023 13:52:49 -0700 Subject: [PATCH] Fix test --- crates/gpui2/src/keymap/context.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/gpui2/src/keymap/context.rs b/crates/gpui2/src/keymap/context.rs index 99a95531a2..b9cb0384ec 100644 --- a/crates/gpui2/src/keymap/context.rs +++ b/crates/gpui2/src/keymap/context.rs @@ -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]