1 $:.unshift(File.dirname(__FILE__) + '/../lib')
7 class Test::Unit::TestCase
10 `erl -noshell -eval 'A = #{code.split.join(' ')}, io:put_chars(A).' -s erlang halt`
13 def encode_packet(code)
14 bin = run_erl("term_to_binary(#{code})")
15 [bin.length, bin].pack("Na#{bin.length}")
23 class FakePort < Erlectricity::Port
27 def initialize(*terms)
30 super(StringIO.new(""), StringIO.new(""))