about summary refs log tree commit diff
path: root/tvix/eval/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/main.rs')
-rw-r--r--tvix/eval/src/main.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/tvix/eval/src/main.rs b/tvix/eval/src/main.rs
index 4cfa0a137a1b..a8e2bea64725 100644
--- a/tvix/eval/src/main.rs
+++ b/tvix/eval/src/main.rs
@@ -12,6 +12,9 @@ mod opcode;
 mod value;
 mod vm;
 
+#[cfg(test)]
+mod tests;
+
 fn main() {
     let mut args = env::args();
     if args.len() > 2 {
@@ -47,8 +50,8 @@ fn run_prompt() {
 }
 
 fn run(code: String) {
-    match eval::interpret(code) {
-        Ok(result) => println!("=> {}", result),
+    match eval::interpret(&code) {
+        Ok(result) => println!("=> {} :: {}", result, result.type_of()),
         Err(err) => eprintln!("{}", err),
     }
 }