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-hook | |
| 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-hook')
| -rw-r--r-- | examples/example-hook/test.toml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/example-hook/test.toml b/examples/example-hook/test.toml new file mode 100644 index 0000000..fb4f1de --- /dev/null +++ b/examples/example-hook/test.toml @@ -0,0 +1,11 @@ +[[runs]] +input = [ "greet" ] + +expect.exit-code = 0 +expect.result = "Hello, World!" + +[[runs]] +input = [ "greet", "Alice" ] + +expect.exit-code = 0 +expect.result = "Hello, Alice!" |
