summaryrefslogtreecommitdiffstats
path: root/test/test_iotas.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-27 11:49:10 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-27 11:49:10 +0200
commit06fe1fe549d6c7dbb643a07a485d24c3e45216d3 (patch)
tree90947a79c9732a3424b28fd972de06e070e95c53 /test/test_iotas.rb
parent2526cd9aef3bb7dc04901be4067dd211f03fe9b5 (diff)
parent7cfcad744d3e18cbe8a9f71c43a0cad1e8fdd6b4 (diff)
downloadedoors-ruby-06fe1fe549d6c7dbb643a07a485d24c3e45216d3.zip
edoors-ruby-06fe1fe549d6c7dbb643a07a485d24c3e45216d3.tar.gz
Merge branch 'rewrite0'
Diffstat (limited to 'test/test_iotas.rb')
-rw-r--r--test/test_iotas.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/test_iotas.rb b/test/test_iotas.rb
index 59c9552..333d514 100644
--- a/test/test_iotas.rb
+++ b/test/test_iotas.rb
@@ -136,7 +136,7 @@ class OutputDoor < Edoors::Door
#
end
#
-spin = Edoors::Spin.new 'dom0', :debug_routing=>false, :debug_errors=>true
+spin = Edoors::Spin.new 'dom0', :debug_routing=>false, :debug_garbage=>true
#
room0 = Edoors::Room.new 'room0', spin
room1 = Edoors::Room.new 'room1', spin
@@ -148,14 +148,13 @@ input1 = InputDoor.new 'input1', room1
output1 = OutputDoor.new 'output1', room1, true
concat1 = ConcatBoard.new 'concat1', room1
#
-room0.add_link Edoors::Link.new('input0', 'output0', nil, nil, nil)
+room0.add_link Edoors::Link.new('input0', 'output0', nil, nil)
#
p0 = spin.require_p Edoors::Particle
p0.set_data Edoors::LNK_SRC, 'input1'
-p0.set_data Edoors::LNK_DSTS, 'concat1?follow,output1'
-p0.set_data Edoors::LNK_FIELDS, 'f0,f2'
-p0.set_data Edoors::LNK_CONDF, 'f0,f1,f2'
-p0.set_data Edoors::LNK_CONDV, 'v0v1v2'
+p0.set_data Edoors::LNK_DSTS, ['concat1?follow','output1']
+p0.set_data Edoors::LNK_KEYS, ['f0','f2']
+p0.set_data Edoors::LNK_VALUE, {'f0'=>'v0','f1'=>'v1','f2'=>'v2'}
p0.add_dst Edoors::SYS_ACT_ADD_LINK, room1.path
room1.send_sys_p p0 # send_sys_p -> room0 -> spin -> room1 -> input1
#