summaryrefslogtreecommitdiff
path: root/tests/functions/test_implicit_return.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functions/test_implicit_return.zc')
-rw-r--r--tests/functions/test_implicit_return.zc18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/functions/test_implicit_return.zc b/tests/functions/test_implicit_return.zc
new file mode 100644
index 0000000..bb35134
--- /dev/null
+++ b/tests/functions/test_implicit_return.zc
@@ -0,0 +1,18 @@
+test "test_implicit_return" {
+ // Adds newline
+ "Hello Implicit";
+
+ // Adds newline
+ println "Hello Explicit";
+
+ // No newline
+ print "Loading";
+ print ".";
+ print ".";
+ println " Done!";
+
+ // With variables
+ var x = 42;
+ print "Value is: ";
+ println "{x}";
+}