From: Bernhard Urban Date: Tue, 4 May 2010 21:26:22 +0000 (+0200) Subject: codea: testfaelle von intelli X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=testub10.git;a=commitdiff_plain;h=836ac5941a8cd94d02e10d42bb3be442fad2330c codea: testfaelle von intelli --- diff --git a/codea/intelli_00.0 b/codea/intelli_00.0 new file mode 100644 index 0000000..9856fd9 --- /dev/null +++ b/codea/intelli_00.0 @@ -0,0 +1,8 @@ +method f(a b c) + return (a*5) - (b*c) - this; +end; + +/*verschachtelte mult*/ +method g(a b c d) + return ((a * (b * (c * (-4)))) - d); +end; diff --git a/codea/intelli_00.call b/codea/intelli_00.call new file mode 100644 index 0000000..bfe18ac --- /dev/null +++ b/codea/intelli_00.call @@ -0,0 +1,9 @@ +long f(long, long, long, long); +long g(long, long, long, long, long); + + + + +RET(f(1, 100, 10, 5) == 449); + +RET(g(0, -2, 7, 14, 20) == 764); diff --git a/codea/intelli_01.0 b/codea/intelli_01.0 new file mode 100644 index 0000000..f0da467 --- /dev/null +++ b/codea/intelli_01.0 @@ -0,0 +1,3 @@ +method f(a) + return (a*a) * (2-3) * this * (3 * (2-3)); +end; diff --git a/codea/intelli_01.call b/codea/intelli_01.call new file mode 100644 index 0000000..f9bb040 --- /dev/null +++ b/codea/intelli_01.call @@ -0,0 +1,9 @@ +long f(long, long); + + + + + +RET(f(9, 15) == 6075); + + diff --git a/codea/intelli_02.0 b/codea/intelli_02.0 new file mode 100644 index 0000000..4dc8522 --- /dev/null +++ b/codea/intelli_02.0 @@ -0,0 +1,3 @@ +method f(a b c) + return ((a or 2) or (b or c)) - 10; +end; \ No newline at end of file diff --git a/codea/intelli_02.call b/codea/intelli_02.call new file mode 100644 index 0000000..8cf536a --- /dev/null +++ b/codea/intelli_02.call @@ -0,0 +1,4 @@ +long f(long, long, long, long); + +RET(f(0, 1, 8, 16) == 17); + diff --git a/codea/intelli_03.0 b/codea/intelli_03.0 new file mode 100644 index 0000000..2cb9197 --- /dev/null +++ b/codea/intelli_03.0 @@ -0,0 +1,4 @@ +method f(a b c) + return (a < (b < c)) * this; +end; + diff --git a/codea/intelli_03.call b/codea/intelli_03.call new file mode 100644 index 0000000..961b937 --- /dev/null +++ b/codea/intelli_03.call @@ -0,0 +1,7 @@ +long f(long, long, long, long); + + +RET(f(3, -2, 0, 15) == 3); + + + diff --git a/codea/intelli_04.0 b/codea/intelli_04.0 new file mode 100644 index 0000000..170550d --- /dev/null +++ b/codea/intelli_04.0 @@ -0,0 +1,3 @@ +method g(a b) + return a = b; +end; diff --git a/codea/intelli_04.call b/codea/intelli_04.call new file mode 100644 index 0000000..66eac1d --- /dev/null +++ b/codea/intelli_04.call @@ -0,0 +1,4 @@ +long g(long, long, long); + +RET(g(0, -2, -2) == 1); +RET(g(0, 1, 3) == 0); \ No newline at end of file