Add missing test for label

This commit is contained in:
kjeremy 2019-10-29 15:25:31 -04:00
parent da0c719575
commit 4ca5d4c353

View file

@ -448,6 +448,7 @@ pub fn foo(mut r: WriteHandler<()>) {
"#, "#,
); );
assert_eq!(info.label(), "fn finished(&mut self, ctx: &mut Self::Context)".to_string());
assert_eq!(info.parameters(), ["&mut self", "ctx: &mut Self::Context"]); assert_eq!(info.parameters(), ["&mut self", "ctx: &mut Self::Context"]);
assert_eq!(info.active_parameter, Some(1)); assert_eq!(info.active_parameter, Some(1));
assert_eq!( assert_eq!(