X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=blobdiff_plain;f=csrc%2Foceani-tests.mdc;h=87b0206261b46ee68ff1959c776a1e732f284cdd;hp=dde99bf37b55db6141c8ae241c6b2d97b1d682a3;hb=710bd5e34f120ccc520d60839420603772408a0f;hpb=dd984d3a50a51eaadea073b3bdc7d7ebef6def2c diff --git a/csrc/oceani-tests.mdc b/csrc/oceani-tests.mdc index dde99bf..87b0206 100644 --- a/csrc/oceani-tests.mdc +++ b/csrc/oceani-tests.mdc @@ -80,7 +80,7 @@ arguments separated from the name by commas. For each test, there is a section @mv *.gcov coverage ; [ -f .gcov ] && mv .gcov coverage || true @ awk '/NOTEST/ { next } /^ *[1-9]/ {ran+=1} /^ *###/ {skip+=1} \ END {printf "coverage: %6.2f%%\n", ran * 100 / (ran + skip); \ - if (ran < (ran + skip) *0.94) exit(1) }' \ + if (ran < (ran + skip) *0.9469) exit(1) }' \ coverage/oceani.mdc.gcov @rm -f .tmp* @@ -751,6 +751,7 @@ various places that `type_err()` are called. bar:foo foo.c = 43 print c.foo + print bar.c ###### output: type_err3 .tmp.code:8:12: error: expected number but variable 'c' is string @@ -780,6 +781,7 @@ various places that `type_err()` are called. .tmp.code:32:8: error: field reference attempted on none, not a struct .tmp.code:32:16: error: expected none found number .tmp.code:33:14: error: field reference attempted on string, not a struct + .tmp.code:34:14: error: cannot find requested field in foo oceani: type error in program - not running. ###### test: type_err4