rustfmt
Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
parent
ecbc47d4fe
commit
bc09cb07b1
17 changed files with 236 additions and 217 deletions
|
|
@ -1,6 +1,6 @@
|
|||
mod var_lib_tests {
|
||||
use relish::ast::{eval, lex, SymTable, Ctr};
|
||||
use relish::stdlib::{static_stdlib, dynamic_stdlib};
|
||||
use relish::ast::{eval, lex, Ctr, SymTable};
|
||||
use relish::stdlib::{dynamic_stdlib, static_stdlib};
|
||||
|
||||
#[test]
|
||||
fn test_variable_def_and_lookup() {
|
||||
|
|
@ -134,7 +134,10 @@ mod var_lib_tests {
|
|||
println!("tree: {tree}");
|
||||
let eval_result = eval(&tree, &mut syms);
|
||||
if let Err(s) = eval_result {
|
||||
assert_eq!(s.to_string(), "error in call to test: undefined symbol: test".to_string());
|
||||
assert_eq!(
|
||||
s.to_string(),
|
||||
"error in call to test: undefined symbol: test".to_string()
|
||||
);
|
||||
} else {
|
||||
let res = eval_result.unwrap();
|
||||
eprintln!("shouldn't have suceeded: {res}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue