From 3ac809d7f8c4f29bfcd0a52c7e168e783abc88df Mon Sep 17 00:00:00 2001 From: Arnaud Bailly Date: Wed, 25 Sep 2024 21:49:33 +0200 Subject: Extract IO operations to own module --- rust/tests/interpret_test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/tests/interpret_test.rs') diff --git a/rust/tests/interpret_test.rs b/rust/tests/interpret_test.rs index 40c3ee5..0ca3356 100644 --- a/rust/tests/interpret_test.rs +++ b/rust/tests/interpret_test.rs @@ -1,4 +1,4 @@ -use lambda::eval_file; +use lambda::io::{eval_file, repl}; #[test] fn interpreter_can_read_and_interpret_file() { @@ -12,6 +12,6 @@ fn interpreter_can_read_and_interpret_file() { fn repl_can_read_and_interpret_input() { let input = "(def id (lam x x))\n(id 12)"; let mut output = Vec::new(); - lambda::repl(&mut input.as_bytes(), &mut output); + repl(&mut input.as_bytes(), &mut output); assert_eq!("> true\n> 12\n> ", String::from_utf8(output).unwrap()); } -- cgit v1.2.3