diff options
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"); +} |
