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

Function test_compile_lambda2

crates/compiler/src/lib.rs:383–389  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

381
382#[test]
383fn test_compile_lambda2() {
384 let code = r#"
385(lambda x: f'hello, {x}')('world}')
386"#;
387 let compiled = compile(code, Mode::Exec, "<>", CompileOpts::default());
388 dbg!(compiled.expect("compile error"));
389}
390
391#[test]
392fn test_compile_lambda3() {

Callers

nothing calls this directly

Calls 1

compileFunction · 0.70

Tested by

no test coverage detected