fn returns_error_on_unordered_nesting_in_order() {
    expect_error!(
        r#"
        [scripts]
        basic.subcommands.test = "echo %name && exit 0"
        basic.subcommands.test.args = ["name"] # This has to be `basic.args` instead
        basic.subcommands.other = "exit 1"
        basic.subcommands.nested.subcommands.test = "exit 0"
        basic.subcommands.nested.subcommands.other = "exit 1"
        basic.order = """
        test {
            Any => other
        }
        """
        "#,
        BONNIE_VERSION,
        ["basic"]
    );
}
// This test will only work on Linux
This test will only work on Linux
This test will only work on Linux
fn returns_error_on_unordered_nesting_in_order() {
    expect_error!(
        r#"
        [scripts]
        basic.subcommands.test = "echo %name && exit 0"
        basic.subcommands.test.args = ["name"] # This has to be `basic.args` instead
        basic.subcommands.other = "exit 1"
        basic.subcommands.nested.subcommands.test = "exit 0"
        basic.subcommands.nested.subcommands.other = "exit 1"
        basic.order = """
        test {
            Any => other
        }
        """
        "#,
        BONNIE_VERSION,
        ["basic"]
    );
}
fn returns_error_on_unordered_nesting_in_order ( ) { expect_error ! ( r#"
        [scripts]
        basic.subcommands.test = "echo %name && exit 0"
        basic.subcommands.test.args = ["name"] # This has to be `basic.args` instead
        basic.subcommands.other = "exit 1"
        basic.subcommands.nested.subcommands.test = "exit 0"
        basic.subcommands.nested.subcommands.other = "exit 1"
        basic.order = """
        test {
            Any => other
        }
        """
        "# BONNIE_VERSION [ " " ] ) ; }
This test will only work on Linux
This test will only work on Linux