diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-09-27 11:30:36 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-09-27 11:30:36 +0100 |
| commit | 217cef25875d3ef04f055bed64752db9b2fbb21e (patch) | |
| tree | 65a5e599b61d5aaba998a02a96cded0f7558f0fe /examples | |
| parent | 537aefec06307139899e3f2f2cd74842a3af6345 (diff) | |
Support ignore target
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/13-target-ignore/shed.toml | 9 | ||||
| -rw-r--r-- | examples/13-target-ignore/src/HelloWorld.shed | 9 |
2 files changed, 18 insertions, 0 deletions
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") +} |
