From f5d31e6723182745c9e97b16192b42d84c52f3e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 27 Jun 2012 09:44:54 +0200 Subject: update test_iotas to reflect API updates --- test/test_iotas.rb | 11 +++++------ 1 file 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 # -- cgit v1.1-2-g2b99