From 8b312fc4b4447cfbfde7898ab8f0a1782fcb7aa0 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 13 May 2026 19:31:43 +0800 Subject: Rename test-examples config file and update reference --- examples/test-example-async.toml | 54 ---------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 examples/test-example-async.toml (limited to 'examples/test-example-async.toml') diff --git a/examples/test-example-async.toml b/examples/test-example-async.toml deleted file mode 100644 index a63f566..0000000 --- a/examples/test-example-async.toml +++ /dev/null @@ -1,54 +0,0 @@ -[[test.example-async]] -command = "hello World" -expect.exit-code = 0 -expect.result = "Hello, World!" - -[[test.example-basic]] -command = "hello World" -expect.exit-code = 0 -expect.result = "Hello, World!" - -[[test.example-exit-code]] -command = "error" -expect.exit-code = 1 -expect.result = "Exit with exit code: 1" - -[[test.example-general-renderer]] -command = "render Bob 22" -expect.exit-code = 0 -expect.result = "Bob is 22 years old" - -[[test.example-general-renderer]] -command = "render Bob 22 --json" -expect.exit-code = 0 -expect.result = "{\"member_name\":\"Bob\",\"member_age\":22}" - -[[test.example-general-renderer]] -command = "render Bob 22 --yaml" -expect.exit-code = 0 -expect.result = "member_name: Bob\nmember_age: 22" - -[[test.example-picker]] -command = "pick Bob" -expect.exit-code = 0 -expect.result = "Picked: name = Bob, age = 20" - -[[test.example-picker]] -command = "pick Bob --age -15" -expect.exit-code = 0 -expect.result = "Picked: name = Bob, age = 0" - -[[test.example-picker]] -command = "pick --age 99" -expect.exit-code = 0 -expect.result = "No name provided." - -[[test.example-picker]] -command = "pick" -expect.exit-code = 0 -expect.result = "No name provided." - -[[test.example-picker]] -command = "pick --age 150" -expect.exit-code = 0 -expect.result = "No name provided." -- cgit