Sha256: 466860af12346b63ea11426627b11842a911e5b84b4298cf9dfe127c2ae95cd9

Contents?: true

Size: 950 Bytes

Versions: 21

Compression:

Stored size: 950 Bytes

Contents

# Copyright (C) 2022  Ruby-GNOME Project Team
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

class TestGLibPointer < Test::Unit::TestCase
  include GLibTestUtils

  test "#to_i" do
    pointer = GLib::Pointer.new(0x08)
    assert_equal(0x08, pointer.to_i)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
glib2-4.2.4 test/test-pointer.rb
glib2-4.2.3 test/test-pointer.rb
glib2-4.2.2 test/test-pointer.rb
glib2-4.2.1 test/test-pointer.rb
glib2-4.2.0 test/test-pointer.rb
glib2-4.1.9 test/test-pointer.rb
glib2-4.1.8 test/test-pointer.rb
glib2-4.1.7 test/test-pointer.rb
glib2-4.1.6 test/test-pointer.rb
glib2-4.1.5 test/test-pointer.rb
glib2-4.1.4 test/test-pointer.rb
glib2-4.1.3 test/test-pointer.rb
glib2-4.1.2 test/test-pointer.rb
glib2-4.1.1 test/test-pointer.rb
glib2-4.1.0 test/test-pointer.rb
glib2-4.0.9 test/test-pointer.rb
glib2-4.0.8 test/test-pointer.rb
glib2-4.0.7 test/test-pointer.rb
glib2-4.0.6 test/test-pointer.rb
glib2-4.0.5 test/test-pointer.rb