diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-07-08 12:49:28 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-07-08 12:49:28 +0100 |
| commit | 91a1ca266f80927f8f06db0fc11e60c93dce7ca9 (patch) | |
| tree | b89c3b4a665ce8a3d5223bf92cae1c996fecccc8 /examples/string-add | |
| parent | 1dcde21b8fa445e9eb78a898705234c2f7499eb6 (diff) | |
Add example for string addition
Diffstat (limited to 'examples/string-add')
| -rw-r--r-- | examples/string-add/shed.toml | 9 | ||||
| -rw-r--r-- | examples/string-add/src/HelloWorld.shed | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/examples/string-add/shed.toml b/examples/string-add/shed.toml new file mode 100644 index 00000000..156fa7c6 --- /dev/null +++ b/examples/string-add/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/string-add/src/HelloWorld.shed b/examples/string-add/src/HelloWorld.shed new file mode 100644 index 00000000..07657574 --- /dev/null +++ b/examples/string-add/src/HelloWorld.shed @@ -0,0 +1,3 @@ +fun main() ! Io -> Unit { + print!("hello, " + "world\n"); +} |
