X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=blobdiff_plain;f=csrc%2Foceani-tests.mdc;fp=csrc%2Foceani-tests.mdc;h=0feb0d20ba0b86f17869b47931e998705a23a0d3;hp=6759c542d6d7dd72093a99babcbcd02fafb26173;hb=37c2482809a970e5c452f4e3f43d9ee8e18fd141;hpb=bc3045b3d8e8140d94a7bfd0cff1dbf8a7b491a1 diff --git a/csrc/oceani-tests.mdc b/csrc/oceani-tests.mdc index 6759c54..0feb0d2 100644 --- a/csrc/oceani-tests.mdc +++ b/csrc/oceani-tests.mdc @@ -274,12 +274,12 @@ Now we need to test if/else and some different loops print "error is ", target - guess * guess for j:=0; then j = j+3 ; while j < 10: - if j != 0 and then 20 / j > 3: + if j != 0 and 20 / j > 3: print "20 /", j," =", 20 / j else print "I won't calculate 20 /", j pi ::= 3.1415926535897 - if 355/113 == pi or else +(pi - 355/113) < 0.001: + if 355/113 == pi or +(pi - 355/113) < 0.001: print "Close enough" print "lower" if 355/113 < pi else "higher" print "higher" if 355/113 > pi else "lower" @@ -781,7 +781,7 @@ A simple linked list example func insert(list:@linkage; new:string) p:=list - while ?p.next and then p.next.this < new: + while ?p.next and p.next.this < new: p = p.next.list t:@node = @new() t.list.next = p.next