Use a helper function
This commit is contained in:
parent
a7ba99b3a8
commit
af28442913
|
|
@ -546,9 +546,6 @@ mod tests {
|
|||
};
|
||||
let remember = build(&remember);
|
||||
let the_answerer = remember.call(None, &[Some(42.into())]);
|
||||
let Some(ValueInner::Function(f)) = the_answerer else {
|
||||
panic!("a function expected");
|
||||
};
|
||||
assert_eq!(f.call(&[]), Some(42.into()));
|
||||
assert_eq!(call(&the_answerer, &[]), Some(42.into()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user