 Code.require_file "../test_helper.exs", __FILE__
-
-defrecord MockNode, pid: nil do
-	@defmodule """
-  Useful to allow neurons and actuators send messages to the test process
-  """
-end
 
 defmodule NeuralNetworkTest do
 

		
		neuron = NeuronProcess.add_outbound_connection( neuron, actuator )
		actuator = ActuatorProcess.add_inbound_connection( actuator, neuron )
		actuator = ActuatorProcess.add_outbound_connection( actuator, MockNode.new( pid: self() ) )

		SensorProcess.sync_with_outputs(sensor, [1, 1, 1, 1, 1])

		value = receive do
			{pid, :forward, output} -> 
				assert output == [ 110 ]  

		x
	end

end

defrecord MockNode, pid: nil do
	@defmodule """
  Useful to allow neurons and actuators send messages to the test process
  """
end
