add simple alu1 test
authoradam <adam@megacz.com>
Tue, 13 Feb 2007 14:42:04 +0000 (15:42 +0100)
committeradam <adam@megacz.com>
Tue, 13 Feb 2007 14:42:04 +0000 (15:42 +0100)
tests/alu1/simple-alu1-test.fleet [new file with mode: 0644]

diff --git a/tests/alu1/simple-alu1-test.fleet b/tests/alu1/simple-alu1-test.fleet
new file mode 100644 (file)
index 0000000..8b95bd2
--- /dev/null
@@ -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;