diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-18 11:58:43 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-18 11:58:43 +0200 |
| commit | 8b6391040e3fb2ab5f739e26f88621d63ad5d3cc (patch) | |
| tree | 627527985c4dd6b89864ce10808a7be1d3e2c007 /tests | |
| parent | 6967c6c80a44186a9aa6ae695cf5caf61d3901fd (diff) | |
Remove eat_ prefix
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typeset.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/typeset.rs b/tests/typeset.rs index ed393aee..42151ac6 100644 --- a/tests/typeset.rs +++ b/tests/typeset.rs @@ -323,8 +323,8 @@ fn register_helpers(scope: &mut Scope, panics: Rc<RefCell<Vec<Panic>>>) { } let test = move |ctx: &mut EvalContext, args: &mut FuncArgs| -> Value { - let lhs = args.eat_expect::<Value>(ctx, "left-hand side"); - let rhs = args.eat_expect::<Value>(ctx, "right-hand side"); + let lhs = args.expect::<Value>(ctx, "left-hand side"); + let rhs = args.expect::<Value>(ctx, "right-hand side"); if lhs != rhs { panics.borrow_mut().push(Panic { pos: args.span.start, lhs, rhs }); Value::Str(format!("(panic)")) |
