docs/learn/21-exit_codes.md in teuton-2.7.0 vs docs/learn/21-exit_codes.md in teuton-2.7.1
- old
+ new
@@ -5,13 +5,25 @@
`result` stores information from the last command executed by a "run" action. [Offers many functions](../dsl/definition/result.md)) that transforms output data, and also exitcode is captured.
## Example
```ruby
- target "Exist user root"
+ target "Exist user root (exit code ok)"
run "id root"
expect_exit 0
- target "No user vader"
+ target "No user vader (exit code fail)"
run "id vader"
expect_exit 1
+```
+
+## More examples
+
+```ruby
+ target "Using a range"
+ run "id vader"
+ expect_exit 1..3
+
+ target "Using a list"
+ run "id vader"
+ expect_exit [1, 3, 7]
```