Make it possible to alter code inside of the bash script

This commit is contained in:
Sven van Heugten 2026-02-20 17:30:22 +01:00
parent f87d6bd4c8
commit 4508d3f1b3
No known key found for this signature in database
GPG key ID: D612F88666F4F660
2 changed files with 12 additions and 0 deletions

View file

@ -49,3 +49,14 @@ dotnet build
(assert_fails dotnet test --no-build) | grep "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/)):
~~~
```git-check-assertions
dotnet test
sed -i '/crucial code/d' Main.fs
dotnet build
assert_fails dotnet test --no-build
```
~~~