Add partial change example

```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."
```
This commit is contained in:
Sven van Heugten 2026-03-04 07:22:46 +01:00
parent 66a30d61cf
commit d8e758387c
No known key found for this signature in database
GPG key ID: D612F88666F4F660
2 changed files with 27 additions and 0 deletions

View file

@ -125,3 +125,14 @@ run dotnet test --no-build
assert_failure
```
~~~
Assert that a specific change in a commit is necessary for the tests to succeed:
~~~
```git-check-assertions
git checkout HEAD~ Main.fs
run dotnet test
assert_failure
assert_output --partial "Invalid URL"
```
~~~