---
source: crates/aiken-lang/src/parser/definition/test.rs
description: "Code:\n\ntest invalid_inputs() fail {\n  expect True = False\n\n  False\n}\n"
---
Test(
    Function {
        arguments: [],
        body: Sequence {
            location: 31..59,
            expressions: [
                Assignment {
                    location: 31..50,
                    value: Var {
                        location: 45..50,
                        name: "False",
                    },
                    patterns: [
                        AssignmentPattern {
                            pattern: Constructor {
                                is_record: false,
                                location: 38..42,
                                name: "True",
                                arguments: [],
                                module: None,
                                constructor: (),
                                with_spread: false,
                                tipo: (),
                            },
                            annotation: None,
                        },
                    ],
                    kind: Expect {
                        backpassing: false,
                    },
                },
                Var {
                    location: 54..59,
                    name: "False",
                },
            ],
        },
        doc: None,
        location: 0..26,
        name: "invalid_inputs",
        public: false,
        return_annotation: Some(
            Constructor {
                location: 0..61,
                module: None,
                name: "Bool",
                arguments: [],
            },
        ),
        return_type: (),
        end_position: 60,
        can_error: true,
    },
)
