From 217cef25875d3ef04f055bed64752db9b2fbb21e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 27 Sep 2023 11:30:36 +0100 Subject: Support ignore target --- examples/13-target-ignore/shed.toml | 9 +++++++++ examples/13-target-ignore/src/HelloWorld.shed | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 examples/13-target-ignore/shed.toml create mode 100644 examples/13-target-ignore/src/HelloWorld.shed (limited to 'examples') diff --git a/examples/13-target-ignore/shed.toml b/examples/13-target-ignore/shed.toml new file mode 100644 index 00000000..156fa7c6 --- /dev/null +++ b/examples/13-target-ignore/shed.toml @@ -0,0 +1,9 @@ +[shed] +main = "HelloWorld" + +[[shed.bins]] +name = "hello-world" + +[[shed.examples]] +bin = "hello-world" +expected-output = "hello, world" diff --git a/examples/13-target-ignore/src/HelloWorld.shed b/examples/13-target-ignore/src/HelloWorld.shed new file mode 100644 index 00000000..69dd5c98 --- /dev/null +++ b/examples/13-target-ignore/src/HelloWorld.shed @@ -0,0 +1,9 @@ +fun main() ! Io -> Unit { + #(val part1, _, _, val part2) = messageParts(); + print!(part1); + print!(part2); +} + +fun messageParts() -> #(String, String, String, String) { + #("hello, ", "x", "y", "world\n") +} -- cgit v1.2.3