doc: paulchen beispiele {code{a,b},gesamt} entpackt (jedes mal entpacken nervt langsa...
[uebersetzerbau-ss10.git] / aus_sammelwut / paulchen / ublu / ss08 / abgabe / gesamt / testcases / fib2.0
diff --git a/aus_sammelwut/paulchen/ublu/ss08/abgabe/gesamt/testcases/fib2.0 b/aus_sammelwut/paulchen/ublu/ss08/abgabe/gesamt/testcases/fib2.0
new file mode 100644 (file)
index 0000000..efc08c7
--- /dev/null
@@ -0,0 +1,16 @@
+ (* fibonacci *)
+ func fib(x)
+   if not x >= 2 then
+     return x;
+   else
+     return fib(x+(-1))+fib(x+(-2));
+   end;
+ end;
+(* func main()
+   if not (fib(9)+(-fib(7))) = fib(8) then
+     return 1;
+   else
+     return 0;
+   end;
+ end;
+*)