update Alu3 test to use blend
[fleet.git] / ships / Stack.ship
index 34f2005..851607c 100644 (file)
@@ -61,5 +61,29 @@ process any new {\tt pop} operations.
   end
 
 
+== Test ====================================================
+#ship stack : Stack
+#ship debug : Debug
+
+#expect 4
+#expect 3
+#expect 2
+#expect 1
+#expect 0
+
+debug.in:  [*] take, deliver;
+stack.push: [5] take, deliver; notify stack.pop;
+
+stack.pop: wait; [*] take, sendto debug.in;
+
+0: sendto stack.push;
+1: sendto stack.push;
+2: sendto stack.push;
+3: sendto stack.push;
+4: sendto stack.push;
+
+
+
+
 == Contributors =========================================================
 Adam Megacz <megacz@cs.berkeley.edu>