Sha256: 201e2db23f875c0327bbccaf081cdd528c633ae2832ba5ffcde37233077cb090
Contents?: true
Size: 620 Bytes
Versions: 1
Compression:
Stored size: 620 Bytes
Contents
$:.unshift(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'test/unit' require 'test/spec' require 'erlectricity' class Test::Unit::TestCase def run_erl(code) `erl -noshell -eval 'A = #{code.split.join(' ')}, io:put_chars(A).' -s erlang halt` end def word_length (1.size * 8) - 2 end end class FakePort < Erlectricity::Port attr_reader :sent attr_reader :terms def initialize(*terms) @terms = terms @sent = [] super(StringIO.new(""), StringIO.new("")) end def send(term) sent << term end private def read_from_input @terms.shift end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erlectricity-0.1.0 | test/test_helper.rb |