From e16fa4fa9ac068dce677487ee006c890daec6155 Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 13 Feb 2007 15:42:04 +0100 Subject: [PATCH] add simple alu1 test --- tests/alu1/simple-alu1-test.fleet | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/alu1/simple-alu1-test.fleet diff --git a/tests/alu1/simple-alu1-test.fleet b/tests/alu1/simple-alu1-test.fleet new file mode 100644 index 0000000..8b95bd2 --- /dev/null +++ b/tests/alu1/simple-alu1-test.fleet @@ -0,0 +1,30 @@ +// expected output +#expect 10 +#expect 8 +#expect 9 +#expect -9 +#expect 9 + +#ship debug : Debug +#ship alu1 : Alu1 + +debug.in: [*] take, deliver; +9: sendto alu1.in; +9: sendto alu1.in; +9: sendto alu1.in; +9: sendto alu1.in; + +1: sendto alu1.inOp; +2: sendto alu1.inOp; +3: sendto alu1.inOp; +0: sendto alu1.inOp; +0: sendto alu1.inOp; + +alu1.in: [*] take, deliver; +alu1.inOp: [*] take, deliver; +alu1.out: + [3] take, sendto debug.in; + take; + sendto debug.in; + sendto alu1.in; + [*] take, sendto debug.in; -- 1.7.10.4