summaryrefslogtreecommitdiff
path: root/rust/tests/interpret_test.rs
diff options
context:
space:
mode:
authorArnaud Bailly <arnaud.bailly@iohk.io>2024-09-25 21:49:33 +0200
committerArnaud Bailly <arnaud.bailly@iohk.io>2024-09-25 21:49:33 +0200
commit3ac809d7f8c4f29bfcd0a52c7e168e783abc88df (patch)
tree76ed4bbdb97e423593d2cb358906e43e75d19ddd /rust/tests/interpret_test.rs
parent7f83391f3e4f37fbc512fd7d2bb7c7ec2f0858e9 (diff)
downloadlambda-nantes-3ac809d7f8c4f29bfcd0a52c7e168e783abc88df.tar.gz
Extract IO operations to own module
Diffstat (limited to 'rust/tests/interpret_test.rs')
-rw-r--r--rust/tests/interpret_test.rs4
1 files changed, 2 insertions, 2 deletions
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());
}