Sha256: 0c63f4a995956b6b3832ac616e9d956b03f78921cd36450631b14f2db8467a83
Contents?: true
Size: 538 Bytes
Versions: 3
Compression:
Stored size: 538 Bytes
Contents
require 'zeamays/corn/fruiter' require 'zeamays/corn/fruiter/byte' describe Zeamays::Corn::Fruiter do context "Byte" do let(:packing) { Zeamays::Corn::Fruiter::Byte.fruit_byte(target_value) } context "normally" do let(:target_value) { 30 } subject { packing.unpack("C").first } it { should eq target_value } end context "over byte size" do let(:target_value) { 300 } subject { packing.unpack("C").first } it { should eq (300 - 256) } end pending "Not byte type" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zeamays-0.0.6 | spec/zeamays/corn/fruiter_spec.rb |
zeamays-0.0.5 | spec/zeamays/corn/fruiter_spec.rb |
zeamays-0.0.1 | spec/zeamays/corn/fruiter_spec.rb |