X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=blobdiff_plain;f=csrc%2Foceani-tests.mdc;h=c0a9c88b6c344a973d13a4b643d6471aea50c887;hp=d7253b354e079c433ad5289bd3ce7ee18b9c7840;hb=4bee4f99bc7a0ab4dcd635766acdd15e96f29f5f;hpb=6bf80b764821a6f1b335996b756e4844ff1bdd71 diff --git a/csrc/oceani-tests.mdc b/csrc/oceani-tests.mdc index d7253b3..c0a9c88 100644 --- a/csrc/oceani-tests.mdc +++ b/csrc/oceani-tests.mdc @@ -154,7 +154,7 @@ Now some contants ###### test: consts const: - pi ::= 3.1415926 + pi ::= 3.141 592 653 four ::= 2 + 2 ; five ::= 10/2 const pie ::= "I like Pie"; cake ::= "The cake is" @@ -356,7 +356,7 @@ Here I break it into two parts, keeping the array code separate. program: size::=55 list:[size]number - list[0] = 1234 + list[0] = 1_234 for i:=1; then i = i + 1; while i < size: n := list[i-1] * list[i-1] list[i] = (n / 100) % 10000