X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FGuards2.scl;h=4e26dd73bec8fcf6f59857963537d08315918996;hp=88734c1ac05b5d5e48bbd87e1f80c98233bf28c7;hb=172abed5dbf73c1304a7a95bb8504ea293556948;hpb=bb5a3edf299cb943999c72c69dd68fb740c8a506 diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Guards2.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Guards2.scl index 88734c1ac..4e26dd73b 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Guards2.scl +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Guards2.scl @@ -1,10 +1,10 @@ -import "Prelude" - -fib :: Integer -> Integer -fib x = match x with - v | v <= 2 -> 1 - | True -> fib (v-1) + fib (v-2) - -main = fib 13 --- +import "Prelude" + +fib :: Integer -> Integer +fib x = match x with + v | v <= 2 -> 1 + | True -> fib (v-1) + fib (v-2) + +main = fib 13 +-- 233 \ No newline at end of file