use crate::ir::transformation::helpers::sql_to_optimized_ir;

#[test]
fn lower_upper() {
    let input = r#"select upper(lower('a' || 'B')), upper(a) from t1"#;

    let plan = sql_to_optimized_ir(input, vec![]);

    insta::assert_snapshot!(plan.as_explain().unwrap(), @r#"
    projection (upper((lower((('a'::string || 'B'::string)::string))::string::string))::string -> "col_1", upper(("t1"."a"::string::string))::string -> "col_2")
        scan "t1"
    execution options:
        sql_vdbe_opcode_max = 45000
        sql_motion_row_max = 5000
    "#);
}
