This commit is contained in:
Conrad Irwin committed 2023-11-13 13:53:08 -07:00
1 parent f464d69ff8
commit f8bc9be284
1 file changed
+3 -3
+3 -3
View File
@@ -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]