]> ocean-lang.org Git - ocean/blobdiff - csrc/oceani-tests.mdc
oceani: exercise more parsing options for blocks.
[ocean] / csrc / oceani-tests.mdc
index 0b7c76a726ca8ecc66ee4d68efb9f6f09dc43728..d2628815b35d190dc8ff70182cb7351a5f2a29ae 100644 (file)
@@ -702,6 +702,13 @@ Test functions.  They don't return anything, so we need to get them to print
        do
                n = 4 // xkcd:221
 
+       // exercise the parsing options
+       func t1 (a:number) {
+               print "t1"
+       }
+       func t2 (a:string) {print "string"}
+       func t3() print "t3"
+
 ###### output: functions
        done
        1  done