Slightly improve examples

This commit is contained in:
Sven van Heugten 2026-03-04 08:05:34 +01:00
parent 8de5bee57f
commit d4d25dd784
No known key found for this signature in database
GPG key ID: D612F88666F4F660

View file

@ -114,14 +114,15 @@ assert_output --partial "Invalid URL"
```
~~~
Assert that a commit builds, and that a specific change breaks the tests (as discussed [here](https://sven.memcmp.org/2026-02-20-writing-the-steps-to-validate-a-test-in-the-commit-message/)):
Assert that a specific change breaks the tests (as discussed [here](https://sven.memcmp.org/2026-02-20-writing-the-steps-to-validate-a-test-in-the-commit-message/)):
~~~
```git-check-assertions
dotnet test
run dotnet test
assert_success
sed -i '/crucial code/d' Main.fs
dotnet build
run dotnet test --no-build
run dotnet test
assert_failure
```
~~~
@ -130,6 +131,9 @@ Assert that a specific change in a commit is necessary for the tests to succeed:
~~~
```git-check-assertions
run dotnet test
assert_success
git checkout HEAD~ Main.fs
run dotnet test
assert_failure