From 6d18f8018501b3908fa03cecb76624392e5d0af8 Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 14 Aug 2018 21:46:48 -0700 Subject: [PATCH] Use Result in test --- schala-lang/src/eval.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schala-lang/src/eval.rs b/schala-lang/src/eval.rs index 0561c46..dc369ad 100644 --- a/schala-lang/src/eval.rs +++ b/schala-lang/src/eval.rs @@ -395,7 +395,7 @@ mod eval_tests { let symbol_table = Rc::new(RefCell::new(SymbolTable::new())); let mut state = State::new(symbol_table); let ast = parse(tokenize($string)).0.unwrap(); - state.symbol_table_handle.borrow_mut().add_top_level_symbols(&ast); + state.symbol_table_handle.borrow_mut().add_top_level_symbols(&ast).unwrap(); let reduced = ast.reduce(&state.symbol_table_handle.borrow()); let all_output = state.evaluate(reduced, true); all_output