```git-check-assertions
run ./test/git-check-assertions.bats
assert_failure
assert_output --partial "not ok 9 should restore index when finished"
assert_output --partial "not ok 10 should restore index between commits"
assert_output --partial "not ok 11 should restore index after a failure"
assert_output --partial "not ok 13 you can use git checkout in an assertion to assert against a mixed version of the code"
```
This test currently doesn't pass:
```git-check-assertions
run ./test/git-check-assertions.bats
assert_failure
assert_output --partial "file is greater than 0 byte"
```
```git-check-assertions
sed -i 's/HEAD~/HEAD/' test/git-check-assertions.bats
run test/git-check-assertions.bats
assert_failure
assert_output --partial "Expected command to fail, but it succeeded."
```