From 231b1594e84c2a647dce1bad91b80f0a18f77620 Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 7 Aug 2007 15:48:47 +0100 Subject: [PATCH] move one of the memory tests into Memory.ship --- ships/Memory.ship | 27 +++++++++++++++++++++++++++ tests/memory/instruction-dispatch.fleet | 27 --------------------------- 2 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 tests/memory/instruction-dispatch.fleet diff --git a/ships/Memory.ship b/ships/Memory.ship index fc54823..b330ecb 100644 --- a/ships/Memory.ship +++ b/ships/Memory.ship @@ -295,6 +295,33 @@ endmodule +== Test ============================================================== +// expected output +#expect 12 +#expect 13 +#expect 14 + +// ships required in order to run this code +#ship debug : Debug +#ship memory : Memory + +// instructions not in any codebag are part of the "root codebag" +// which is dispatched when the code is loaded + +BOB: sendto memory.inCBD; +memory.inCBD: [*] take, deliver; +debug.in: [*] take, deliver; + + +// This codebag illustrates how to do a loop. Notice that this +// is actually an uncontrolled data emitter -- it could clog the +// switch fabric! + +BOB: { + 12: sendto debug.in; + 13: sendto debug.in; + 14: sendto debug.in; +} == Constants ======================================================== diff --git a/tests/memory/instruction-dispatch.fleet b/tests/memory/instruction-dispatch.fleet deleted file mode 100644 index fd2d6dc..0000000 --- a/tests/memory/instruction-dispatch.fleet +++ /dev/null @@ -1,27 +0,0 @@ -// expected output -#expect 12 -#expect 13 -#expect 14 - -// ships required in order to run this code -#ship debug : Debug -#ship memory : Memory - -// instructions not in any codebag are part of the "root codebag" -// which is dispatched when the code is loaded - -BOB: sendto memory.inCBD; -memory.inCBD: [*] take, deliver; -debug.in: [*] take, deliver; - - -// This codebag illustrates how to do a loop. Notice that this -// is actually an uncontrolled data emitter -- it could clog the -// switch fabric! - -BOB: { - 12: sendto debug.in; - 13: sendto debug.in; - 14: sendto debug.in; -} - -- 1.7.10.4