Sha256: 2fa2d8ba9748ecd080b8e1e701589e09d68a447da4781c2d87db9662439076db
Contents?: true
Size: 381 Bytes
Versions: 3
Compression:
Stored size: 381 Bytes
Contents
# # This file is part of ruby-ffi. # For licensing, see LICENSE.SPECS # require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper")) require 'ffi' class Timeval < FFI::Struct layout :tv_sec, :ulong, 0, :tv_usec, :ulong, 4 end describe FFI::Struct do it "allows setting fields" do t = Timeval.new t[:tv_sec] = 12 t[:tv_sec].should == 12 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffi-1.9.5-x64-mingw32 | spec/ffi/rbx/struct_spec.rb |
ffi-1.9.5-x86-mingw32 | spec/ffi/rbx/struct_spec.rb |
ffi-1.9.5 | spec/ffi/rbx/struct_spec.rb |