Use a helper function

This commit is contained in:
numzero 2025-04-19 15:22:19 +03:00
parent a7ba99b3a8
commit af28442913

View File

@ -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()));
}
}