Sha256: 5c34d92b53e57232fce7f00f26b6caf3538f0c23efe1cb033239c251819ae2ac

Contents?: true

Size: 291 Bytes

Versions: 4

Compression:

Stored size: 291 Bytes

Contents

require 'spec_helper'
require 'ffi/msgpack/extensions/float'

describe Float do
  subject { 0.2 }

  it "should be packable" do
    should be_kind_of(FFI::MsgPack::Packable)
  end

  it "should pack to a msg" do
    subject.to_msgpack.should == "\xCB?\xC9\x99\x99\x99\x99\x99\x9A"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ffi-msgpack-0.2.1 spec/extensions/float_spec.rb
ffi-msgpack-0.2.0 spec/extensions/float_spec.rb
ffi-msgpack-0.1.4 spec/extensions/float_spec.rb
ffi-msgpack-0.1.3 spec/extensions/float_spec.rb