// Given the dependency file contains a dependency with an invalid name
// When the command is run
// Then the command fails with an error
Given the dependency file contains a dependency with an invalid name
When the command is run
Then the command fails with an error
Given the dependency file contains a dependency with an invalid name When the command is run Then the command fails with an error
fn invalid_dep_name() {
    let mut cmd = setup_test_with_deps_file(
        "invalid_dep_name",
        indoc!{"
            deps
            my_scripts? git git://localhost/my_scripts.git master
        "},
    );
    let cmd_result = cmd.assert();
    cmd_result
        .code(1)
        .stdout("")
        .stderr(
            "dpnd.txt:3: 'my_scripts?' contains an invalid character ('?') at \
             position 11; dependency names can only contain numbers, letters, \
             hyphens, underscores and periods\n",
        );
}
fn invalid_dep_name ( ) { let mut cmd = setup_test_with_deps_file ( " " , indoc ! { " " } , ) ; let cmd_result = cmd . assert ( ) ; cmd_result . code ( 1 ) . stdout ( " " ) . stderr ( " \
 \
 \n " , ) ; }
Given the dependency file contains a dependency with an invalid name
When the command is run
Then the command fails with an error
Given the dependency file contains a dependency with an invalid name When the command is run Then the command fails with an error