cl-interpret/tests: Fix broken test

This commit is contained in:
John 2024-09-19 14:29:21 -05:00
parent ae11d87d68
commit df68d6f2e6

View File

@ -1,5 +1,5 @@
#![allow(unused_imports)] #![allow(unused_imports)]
use crate::{env::Environment, convalue::ConValue, Interpret}; use crate::{convalue::ConValue, env::Environment, Interpret};
use cl_ast::*; use cl_ast::*;
use cl_lexer::Lexer; use cl_lexer::Lexer;
use cl_parser::Parser; use cl_parser::Parser;
@ -188,7 +188,7 @@ mod fn_declarations {
assert_eval!(env, fn empty_fn() {}); assert_eval!(env, fn empty_fn() {});
// TODO: true equality for functions // TODO: true equality for functions
assert_eq!( assert_eq!(
"fn empty_fn () {\n \n}", "fn empty_fn () {}",
format!( format!(
"{}", "{}",
env.get("empty_fn".into()) env.get("empty_fn".into())