diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-15 02:22:42 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-15 02:37:21 +0800 |
| commit | 48cfd06560db6155536f45f3a0209289779a134e (patch) | |
| tree | 2ec89a31f6f2b01b74dd04def38a58eda6288979 /examples/example-pack-err/test.toml | |
| parent | 1c8ab7c872b67159033a2a7dd42168ee9af50771 (diff) | |
refactor: move example tests into per-example test.toml files
Replace the centralized `examples/test-examples.toml` with individual
`test.toml` files in each example directory, updating the test runner
and related documentation accordingly.
Diffstat (limited to 'examples/example-pack-err/test.toml')
| -rw-r--r-- | examples/example-pack-err/test.toml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/examples/example-pack-err/test.toml b/examples/example-pack-err/test.toml new file mode 100644 index 0000000..c4509cb --- /dev/null +++ b/examples/example-pack-err/test.toml @@ -0,0 +1,35 @@ +[[runs]] +input = [ "find" ] + +expect.exit-code = 0 +expect.result = "Search path not provided" + +[[runs]] +input = [ "find", "Cargo.toml" ] + +expect.exit-code = 0 +expect.result = "Not a directory: Cargo.toml" + +[[runs]] +input = [ "find", "examples" ] + +expect.exit-code = 0 +expect.result = "Found directory: examples" + +[[runs]] +input = [ "find-structural", "--json" ] + +expect.exit-code = 0 +expect.result = "{\"name\":\"error_not_found_structural\"}" + +[[runs]] +input = [ "find-structural", "Cargo.toml", "--json" ] + +expect.exit-code = 0 +expect.result = "{\"name\":\"error_not_dir_structural\",\"info\":\"Cargo.toml\"}" + +[[runs]] +input = [ "find-structural", "examples", "--json" ] + +expect.exit-code = 0 +expect.result = "{\"inner\":\"examples\"}" |
