Sha256: da7309d5314219ffdcdd429bdc12cbddf9da9dc5c9dfc87de371b5e82d1de809

Contents?: true

Size: 504 Bytes

Versions: 1

Compression:

Stored size: 504 Bytes

Contents

require File.expand_path('../test_helper.rb', File.dirname(__FILE__))

describe GObjectIntrospection::IConstantInfo do
  describe "for GLib::ALLOCATOR_LIST, a constant of type :gint32" do
    before do
      @info = get_introspection_data 'GLib', 'ALLOCATOR_LIST'
    end

    it "returns :gint32 as its type" do
      assert_equal :gint32, @info.constant_type.tag
    end

    it "returns a value union with member :v_int32 with value 1" do
      assert_equal 1, @info.value[:v_int32]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gir_ffi-0.1.0 test/ffi-gobject_introspection/i_constant_info_test.rb