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:45:00 +0300
committerGitHub <noreply@github.com>2021-12-10 01:45:00 +0300
commit4bdd58d3fbcdce3209033d44d884e87add1d8405 (patch)
tree4b1142f12bf54ce7924d670301722f1f2005c816
parent34551b1d7f8c7b677c1a66fc0ac140d6223409e5 (diff)
parenteff064ca17fc70b7260705654d5701c62ef3709d (diff)
Merge pull request #39 from stefanlasiewski/patch-1
Fix: First two examples are backwards/confusing
-rw-r--r--README.md10
1 files changed, 4 insertions, 6 deletions
diff --git a/README.md b/README.md
index 831374c..4d944bf 100644
--- a/README.md
+++ b/README.md
@@ -68,8 +68,7 @@ Fail if the given expression evaluates to false.
```bash
@test 'assert()' {
- touch '/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()' {
- rm -f '/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 ]
--
```