aboutsummaryrefslogtreecommitdiff
path: root/examples/test-examples.toml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/test-examples.toml')
-rw-r--r--examples/test-examples.toml20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/test-examples.toml b/examples/test-examples.toml
index 8d2cf0d..4a50ab1 100644
--- a/examples/test-examples.toml
+++ b/examples/test-examples.toml
@@ -207,3 +207,23 @@ expect.result = "Hello, Alice!"
command = "greet Alice -r 5"
expect.exit-code = 0
expect.result = "Hello, Alice, Alice, Alice, Alice, Alice!"
+
+[[test.example-pack-err]]
+command = "find"
+expect.exit-code = 0
+expect.result = "Search path not provided"
+
+[[test.example-pack-err]]
+command = "find --json"
+expect.exit-code = 0
+expect.result = '{"name":"error_not_found"}'
+
+[[test.example-pack-err]]
+command = "find Cargo.toml"
+expect.exit-code = 0
+expect.result = "Not a directory: Cargo.toml"
+
+[[test.example-pack-err]]
+command = "find Cargo.toml --json"
+expect.exit-code = 0
+expect.result = '{"name":"error_not_dir","info":"Cargo.toml"}'