From dbd038394c30f117333f9b8f63c876101103e1ef Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 31 Mar 2022 15:12:39 -0400 Subject: [PATCH] improve test --- src/suggestions.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/suggestions.rs b/src/suggestions.rs index bce3926..3319a04 100644 --- a/src/suggestions.rs +++ b/src/suggestions.rs @@ -111,11 +111,13 @@ mod tests { let values = HashMap::from([ ("", HintEnum::Single("x^2")), ("si", HintEnum::Many(&["gnum(", "n(", "nh("])), + ("log", HintEnum::Many(&["2(", "10("])), + ("cos", HintEnum::Many(&["(", "h("])), ]); for (key, value) in values { println!("{} + {:?}", key, value); - assert_eq!(generate_hint(key.to_string()), value.to_owned()); + assert_eq!(generate_hint(key.to_string()), value); } } }