From 48e27a01e630bb219997a99e0b18fce871ed35fb Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 7 Aug 2007 15:32:43 +0100 Subject: [PATCH] move Stack test into Stack.ship --- ships/Stack.ship | 24 ++++++++++++++++++++++++ tests/stack/stack-test.fleet | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 tests/stack/stack-test.fleet diff --git a/ships/Stack.ship b/ships/Stack.ship index 34f2005..851607c 100644 --- a/ships/Stack.ship +++ b/ships/Stack.ship @@ -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 diff --git a/tests/stack/stack-test.fleet b/tests/stack/stack-test.fleet deleted file mode 100644 index 8cd24b1..0000000 --- a/tests/stack/stack-test.fleet +++ /dev/null @@ -1,24 +0,0 @@ -#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; - - - - - -- 1.7.10.4