From d4d25dd7845b649561b3f30f39b69b185e7ffcba Mon Sep 17 00:00:00 2001 From: Sven van Heugten Date: Wed, 4 Mar 2026 08:05:34 +0100 Subject: [PATCH] Slightly improve examples --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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