MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_print_42

Function test_print_42

crates/vm/src/eval.rs:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18 #[test]
19 fn test_print_42() {
20 Interpreter::without_stdlib(Default::default()).enter(|vm| {
21 let source = String::from("print('Hello world')");
22 let vars = vm.new_scope_with_builtins();
23 let result = eval(vm, &source, vars, "<unittest>").expect("this should pass");
24 assert!(vm.is_none(&result));
25 })
26 }
27}

Callers

nothing calls this directly

Calls 3

evalFunction · 0.70
enterMethod · 0.45

Tested by

no test coverage detected