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