From f8b36a470a89a830430c7f5f0d71ea73c8dfb393 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 9 Jan 2021 16:57:21 +0800 Subject: [PATCH] Fix test. --- tests/print.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/print.rs b/tests/print.rs index c61cae49..4adda4e2 100644 --- a/tests/print.rs +++ b/tests/print.rs @@ -25,7 +25,7 @@ fn test_print_debug() -> Result<(), Box> { // Evaluate script engine.consume("print(40 + 2)")?; let mut ast = engine.compile(r#"let x = "hello!"; debug(x)"#)?; - ast.set_source(Some("world")); + ast.set_source("world"); engine.consume_ast(&ast)?; // 'logbook' captures all the 'print' and 'debug' output