X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=blobdiff_plain;f=csrc%2Foceani-tests.mdc;fp=csrc%2Foceani-tests.mdc;h=fdf55038638216831a5ab2161cb57d13044fbe37;hp=4e9f4e388ea123f0c457c97830f6818df8db799f;hb=dff21c2c58c0087025f8dcf5b0ca12c5cb51a564;hpb=95aa82d18205907d4f4d73f43c1d6bf2a82af288 diff --git a/csrc/oceani-tests.mdc b/csrc/oceani-tests.mdc index 4e9f4e3..fdf5503 100644 --- a/csrc/oceani-tests.mdc +++ b/csrc/oceani-tests.mdc @@ -686,6 +686,15 @@ Test functions. They don't return anything, so we need to get them to print angular := to_polar(32, 23) print angular.rho, angular.theta + func test2(n:number; s:string;) : (ret:number) + ret = n + $s + + func random + return + n:number + do + n = 4 // xkcd:221 + ###### output: functions done 1 done