I don't know why the fuck it is still failing

pull/13/head
kevin zhuang 4 years ago
parent d13202f1a6
commit 15438bf7a3

@ -48,17 +48,17 @@ stage_modified_file() {
@test "fadd stage selected file" {
run stage_selected_file
[ "${status}" -eq 128 ]
[[ "${lines[0]}" =~ "fatal: pathspec 'searchfile' did not match any files" ]]
[ "${lines[0]}" = "fatal: pathspec 'searchfile' did not match any files" ]
}
@test "fadd stage selected dir" {
run stage_selected_dir
[ "${status}" -eq 128 ]
[[ "${lines[0]}" =~ "fatal: pathspec 'searchdir' did not match any files" ]]
[ "${lines[0]}" = "fatal: pathspec 'searchdir' did not match any files" ]
}
@test "fadd stage modified file" {
run stage_modified_file
[ "${status}" -eq 128 ]
[[ "${lines[0]}" =~ "fatal: pathspec '$HOME/modifiedfile' did not match any files" ]]
[ "${lines[0]}" = "fatal: pathspec '$HOME/modifiedfile' did not match any files" ]
}

@ -42,8 +42,6 @@ checkout_selected_file() {
@test "fchekcout branch" {
run checkout_branch
echo "${status}" >&3
echo "${output}" >&3
result=$(echo "${output}" | tr '`' "'")
[ "${status}" -eq 129 ]
[[ "${result}" =~ "error: unknown option 'branch'" ]]

Loading…
Cancel
Save