From 523df74b72bddb7cca759ab39f75209a0971e1e3 Mon Sep 17 00:00:00 2001 From: Sven van Heugten Date: Tue, 3 Mar 2026 20:32:14 +0100 Subject: [PATCH] Use the new functions in the README examples --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 259c308..930e627 100644 --- a/README.md +++ b/README.md @@ -69,12 +69,13 @@ dotnet test --no-build ``` ~~~ -Assert that a commit builds, but that the tests do not succeed (`assert_fails` is a helper function included in `git-check-assertions`): +Assert that a commit builds, but that the tests do not succeed: ~~~ ```git-check-assertions dotnet build -assert_fails dotnet test --no-build +run dotnet test --no-build +assert_failure ``` ~~~ @@ -83,7 +84,9 @@ Assert that a commit builds, and that the tests fail with exactly the error that ~~~ ```git-check-assertions dotnet build -(assert_fails dotnet test --no-build) | grep "Invalid URL" +run dotnet test --no-build +assert_failure +assert_output --partial "Invalid URL" ``` ~~~ @@ -94,6 +97,7 @@ Assert that a commit builds, and that a specific change breaks the tests (as dis dotnet test sed -i '/crucial code/d' Main.fs dotnet build -assert_fails dotnet test --no-build +run dotnet test --no-build +assert_failure ``` ~~~