Sha256: b5b4034507faea49b2a60dad552742bf4a8f8e4817cf97c01cdff74a64e97f27
Contents?: true
Size: 588 Bytes
Versions: 4
Compression:
Stored size: 588 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_union[:v_int32] end it "returns 1 as its value" do assert_equal 1, @info.value end end end
Version data entries
4 entries across 4 versions & 1 rubygems