diff --git a/README.md b/README.md index 9b8fb2a..a128ef8 100644 --- a/README.md +++ b/README.md @@ -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