X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=blobdiff_plain;f=csrc%2Foceani-tests.mdc;h=2433cce68593ee7f01153beec063927f4259b05f;hp=973331fbddb67baf77e17ed8ddec4ab21809a93c;hb=6a546ea265d0ee30152298463e9e7b7c2f53b3b0;hpb=688a9e05b01cd47b1a583848ade627d3f29b52d1 diff --git a/csrc/oceani-tests.mdc b/csrc/oceani-tests.mdc index 973331f..2433cce 100644 --- a/csrc/oceani-tests.mdc +++ b/csrc/oceani-tests.mdc @@ -365,13 +365,14 @@ Here I break it into two parts, keeping the array code separate. else hi = mid if hi - lo < 1: + lo = mid use GiveUp use True do pass case Found: print "Yay, I found", target case GiveUp: - print "Closest I found was", mid + print "Closest I found was", lo ###### output: sayhello,55,33,hello,True Hello World, what lovely oceans you have!