aboutsummaryrefslogtreecommitdiff
path: root/examples/example-outside-type/test.toml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example-outside-type/test.toml')
-rw-r--r--examples/example-outside-type/test.toml17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/example-outside-type/test.toml b/examples/example-outside-type/test.toml
new file mode 100644
index 0000000..50eaa90
--- /dev/null
+++ b/examples/example-outside-type/test.toml
@@ -0,0 +1,17 @@
+[[runs]]
+input = [ "parse", "42" ]
+
+expect.exit-code = 0
+expect.result = "Parsed number: 42"
+
+[[runs]]
+input = [ "parse", "hello" ]
+
+expect.exit-code = 0
+expect.result = "Parse error: invalid digit found in string"
+
+[[runs]]
+input = [ "error" ]
+
+expect.exit-code = 0
+expect.result = "IO_ERROR: Error"