Sha256: f881209fe3b748acec8fd55cb473a0b430915786a24472a266e2edcb9a9912b7

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

require 'test_helper'

describe Gtk::TreePath do
  describe '#get_indices' do
    it "returns an enumerable of the TreePath's indices" do
      tree_path = Gtk::TreePath.new_from_string '1:2:3'
      tree_path.get_indices.to_a.must_equal [1, 2, 3]
    end
  end

  describe '.new_from_indices' do
    it 'creates a Gtk::TreePath with the right indices' do
      tree_path = Gtk::TreePath.new_from_indices [1, 2, 3]
      tree_path.get_indices.to_a.must_equal [1, 2, 3]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.14.1 test/gir_ffi-gtk/tree_path_test.rb
gir_ffi-gtk-0.14.0 test/gir_ffi-gtk/tree_path_test.rb
gir_ffi-gtk-0.13.1 test/gir_ffi-gtk/tree_path_test.rb
gir_ffi-gtk-0.13.0 test/gir_ffi-gtk/tree_path_test.rb