Sha256: a6302cb2fa915642bcb8856c76e13ab67f827aa99aa7fe175e3eccf912055c43
Contents?: true
Size: 433 Bytes
Versions: 1
Compression:
Stored size: 433 Bytes
Contents
require 'spec_helper' class WiflyControlShim include Wifly::Calculations end describe Wifly::Calculations do it 'should convert pin to hex' do control = WiflyControlShim.new control.pin_to_hex(5).should eq("0x20") control.pin_to_hex(0).should eq("0x0") end it 'should get high pins' do control = WiflyControlShim.new result = control.parse_io('8d08') result.should eq([3, 8, 10, 11, 15]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wifly-0.0.5 | spec/calculations_spec.rb |