X-Git-Url: https://ocean-lang.org/code/?a=blobdiff_plain;ds=sidebyside;f=csrc%2Foceani-tests.mdc;h=5d1119785ea11760170e6fb180d6b32d4df5eb63;hb=002a71e19a00ba60303b3406bfe3e5da3c828f5d;hp=6be6a153f008e7e3f1300e592c7ea3f3d69ef350;hpb=875d537b75aadc54c94d41585248d0377c6816cc;p=ocean diff --git a/csrc/oceani-tests.mdc b/csrc/oceani-tests.mdc index 6be6a15..5d11197 100644 --- a/csrc/oceani-tests.mdc +++ b/csrc/oceani-tests.mdc @@ -78,9 +78,9 @@ arguments separated from the name by commas. For each test, there is a section @for i in coverage/#*.gcda; do mv $$i coverage/$${i##*#}; done @gcov -o coverage oceani.mdc > /dev/null 2> /dev/null @mv *.gcov coverage ; [ -f .gcov ] && mv .gcov coverage || true - @ awk '/NOTEST/ { next } /^ *[1-9]/ {ran+=1} /^ *###/ {skip+=1} \ + @[ -n "$$SKIP_COVERAGE_CHECK" ] || awk '/NOTEST/ { next } /^ *[1-9]/ {ran+=1} /^ *###/ {skip+=1} \ END {printf "coverage: %6.2f%%\n", ran * 100 / (ran + skip); \ - if (ran < (ran + skip) *0.956) exit(1) }' \ + if (ran < (ran + skip) *0.96) exit(1) }' \ coverage/oceani.mdc.gcov @rm -f .tmp* @@ -193,7 +193,7 @@ Test merging of variables from multiple cases for i:=0; then i=i+1; while i < 5: switch i: case 0: num:="zero" - case 1: num:="one" + case 1: scratch:=42; num:="one" case 2: num:="two" case 3: num:="three" else num:="many" @@ -331,6 +331,7 @@ Here I break it into two parts, keeping the array code separate. a : number a = A; b:number = B + print "still", bigger // check for regression in scoping if a > 0 and b > 0: while a != b: if a < b: @@ -386,6 +387,7 @@ Here I break it into two parts, keeping the array code separate. Hello World, what lovely oceans you have! Is 55 bigger than 33 ? yes double 33 is 66 + still yes GCD of 55 and 33 is 11 Fibonacci: 1 1 2 3 5 8 13 21 34 55 89 144 hello was the str @@ -395,6 +397,7 @@ Here I break it into two parts, keeping the array code separate. Hello World, what lovely oceans you have! Is 12 bigger than 60 ? no double 60 is 120 + still no GCD of 12 and 60 is 12 Fibonacci: 1 1 2 3 5 8 13 21 34 55 89 144 I found the str over there