Added another test proving do_the_walk is now generic
This commit is contained in:
@@ -152,5 +152,6 @@ mod tests {
|
|||||||
.cloned()
|
.cloned()
|
||||||
.collect();
|
.collect();
|
||||||
assert_eq!(do_the_walk(&context, "cat"), &"kitty");
|
assert_eq!(do_the_walk(&context, "cat"), &"kitty");
|
||||||
|
assert_eq!(do_the_walk(&number_context, "tiger"), &3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user