use gonidium::{emit_python, simplify_expr};

#[test]
fn simplify_expr_returns_single_expression() {
    let src = r#"
    |x: f64|
    exp(x) + 1
    "#;

    let expr = simplify_expr(src, false).expect("simplify");
    assert!(expr.contains("exp"));
    assert!(expr.contains("+ 1"));
}

#[test]
fn emit_python_returns_kernel_source() {
    let src = r#"
    |a: f64, b: f64|
    a * b + 1
    "#;

    let code = emit_python(src, "kernel", false).expect("emit");
    assert!(code.contains("def kernel(a, b):"));
    assert!(code.contains("return"));
}
