Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bats-core/bats-assert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schulze <37703201+martin-schulze-vireso@users.noreply.github.com>2021-12-10 01:23:33 +0300
committerGitHub <noreply@github.com>2021-12-10 01:23:33 +0300
commiteff064ca17fc70b7260705654d5701c62ef3709d (patch)
tree4b1142f12bf54ce7924d670301722f1f2005c816
parent27f2e95d5c240c2a873c5e1b431fa7fdb3f92398 (diff)
docs: Avoid ambiguity in examples for assert/refute
-rw-r--r--README.md10
1 files changed, 4 insertions, 6 deletions
diff --git a/README.md b/README.md
index aaa16ad..4d944bf 100644
--- a/README.md
+++ b/README.md
@@ -68,8 +68,7 @@ Fail if the given expression evaluates to false.
```bash
@test 'assert()' {
- rm -f '/var/log/test.log'
- assert [ -e '/var/log/test.log' ]
+ assert [ 1 -lt 0 ]
}
```
@@ -77,7 +76,7 @@ On failure, the failed expression is displayed.
```
-- assertion failed --
-expression : [ -e /var/log/test.log ]
+expression : [ 1 -lt 0 ]
--
```
@@ -92,8 +91,7 @@ Fail if the given expression evaluates to true.
```bash
@test 'refute()' {
- touch '/var/log/test.log'
- refute [ -e '/var/log/test.log' ]
+ refute [ 1 -gt 0 ]
}
```
@@ -101,7 +99,7 @@ On failure, the successful expression is displayed.
```
-- assertion succeeded, but it was expected to fail --
-expression : [ -e /var/log/test.log ]
+expression : [ 1 -gt 0 ]
--
```