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:
-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 ]
--
```