X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=blobdiff_plain;f=csrc%2Foceani-tests.mdc;fp=csrc%2Foceani-tests.mdc;h=fafb78821b76d5d1891cf1a630ad8896ef918a11;hp=d2628815b35d190dc8ff70182cb7351a5f2a29ae;hb=631d5279eef7fe755d9df27ce16b416ba976154b;hpb=00ebc52dd6c8c5bc85795cd1eec6552ca49954e7 diff --git a/csrc/oceani-tests.mdc b/csrc/oceani-tests.mdc index d262881..fafb788 100644 --- a/csrc/oceani-tests.mdc +++ b/csrc/oceani-tests.mdc @@ -295,6 +295,19 @@ Now we need to test if/else and some different loops else print 'larger' + // different parsing options + for { + x:=1; sum := 0 + } then { + x = x + 1 + } while { + use x < 10 + } do { + sum = sum + x + } case 1 { + print "impossible" + } + ###### output: cond_loop Success 1 2 4 8 16 32 64