Sha256: c10c7098bb75ed6176a32e587dad5503506a8dbe4edda7473ec3d58816ba06b4

Contents?: true

Size: 487 Bytes

Versions: 8

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

8 entries across 8 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.12.1 test/gir_ffi-gtk/tree_path_test.rb
gir_ffi-gtk-0.12.0 test/gir_ffi-gtk/tree_path_test.rb
gir_ffi-gtk-0.11.0 test/gir_ffi-gtk/tree_path_test.rb
gir_ffi-gtk-0.10.0 test/gir_ffi-gtk/tree_path_test.rb
gir_ffi-gtk-0.9.0 test/gir_ffi-gtk/tree_path_test.rb
gir_ffi-gtk-0.8.1 test/gir_ffi-gtk/tree_path_test.rb
gir_ffi-gtk-0.8.0 test/gir_ffi-gtk/tree_path_test.rb
gir_ffi-gtk-0.7.2 test/gir_ffi-gtk/tree_path_test.rb