diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-09 13:36:08 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-09 13:36:08 +0200 |
commit | 865a67bf6b4313bda71f7689acc1ccae088c7c77 (patch) | |
tree | 8e672cde3d1271eef159f83c6c23741d780e9ab5 /test/test_evendoors.rb | |
parent | 0b120c62d266cc776b183119ab9a5dc602eabc51 (diff) | |
download | edoors-ruby-865a67bf6b4313bda71f7689acc1ccae088c7c77.zip edoors-ruby-865a67bf6b4313bda71f7689acc1ccae088c7c77.tar.gz |
debug -> debug_routing + debug_errors
Diffstat (limited to 'test/test_evendoors.rb')
-rw-r--r-- | test/test_evendoors.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test_evendoors.rb b/test/test_evendoors.rb index 18073d4..2e8a732 100644 --- a/test/test_evendoors.rb +++ b/test/test_evendoors.rb @@ -7,7 +7,7 @@ require 'evendoors' class InputDoor < EvenDoors::Door # def start! - puts " * start #{self.class.name} #{@path}" if EvenDoors::Twirl.debug + puts " * start #{self.class.name} #{@path}" if EvenDoors::Twirl.debug_routing @lines = [ "#{name} says : hello", "world ( from #{path} )" ] p = require_p EvenDoors::Particle p.set_dst! EvenDoors::ACT_GET, path @@ -15,11 +15,11 @@ class InputDoor < EvenDoors::Door end # # def stop! - # puts " * stop #{self.class.name} #{@path}" if EvenDoors::Twirl.debug + # puts " * stop #{self.class.name} #{@path}" if EvenDoors::Twirl.debug_routing # end # def receive_p p - puts " * #{self.class.name} receive_p : #{p.action}" if EvenDoors::Twirl.debug + puts " * #{self.class.name} receive_p : #{p.action}" if EvenDoors::Twirl.debug_routing if p.action==EvenDoors::ACT_GET p.reset! p.set_data 'line', @lines.shift @@ -43,7 +43,7 @@ end class ConcatBoard < EvenDoors::Board # def receive_p p - puts " * #{self.class.name} receive_p : #{p.action}" if EvenDoors::Twirl.debug + puts " * #{self.class.name} receive_p : #{p.action}" if EvenDoors::Twirl.debug_routing if p.action==EvenDoors::ACT_ERROR # else @@ -63,15 +63,15 @@ end class OutputDoor < EvenDoors::Door # # def start! - # puts " * start #{self.class.name} #{@path}" if EvenDoors::Twirl.debug + # puts " * start #{self.class.name} #{@path}" if EvenDoors::Twirl.debug_routing # end # # def stop! - # puts " * stop #{self.class.name} #{@path}" if EvenDoors::Twirl.debug + # puts " * stop #{self.class.name} #{@path}" if EvenDoors::Twirl.debug_routing # end # def receive_p p - if EvenDoors::Twirl.debug + if EvenDoors::Twirl.debug_routing puts " * #{self.class.name} receive_p : #{@path} : DATA #{p.get_data('line')}" else puts p.get_data 'line' @@ -81,7 +81,7 @@ class OutputDoor < EvenDoors::Door # end # -space = EvenDoors::Space.new 'space', :debug=>true +space = EvenDoors::Space.new 'space', :debug_routing=>false, :debug_errors=>true # room0 = EvenDoors::Room.new 'room0', space room1 = space.add_spot EvenDoors::Room.new 'room1' |