Sha256: e017418c36e92fb6580f1fa3c0430d2148196b2325aed1021f7b213fbfd0c1a8

Contents?: true

Size: 499 Bytes

Versions: 225

Compression:

Stored size: 499 Bytes

Contents

class TestGtkTreePath < Test::Unit::TestCase
  include GtkTestUtils

  def test_compare
    assert_equal(-1, tree_path("0") <=> tree_path("1"))
    assert_equal(0, tree_path("0") <=> tree_path("0"))
    assert_equal(1, tree_path("1") <=> tree_path("0"))
  end

  def test_equal
    assert_equal(tree_path("0"), tree_path("0"))
    assert_not_equal(tree_path("0"), tree_path("1"))
    assert_not_equal(tree_path("0"), "0")
  end

  private
  def tree_path(path)
    Gtk::TreePath.new(path)
  end
end

Version data entries

225 entries across 225 versions & 2 rubygems

Version Path
gtk2-3.4.3 test/test_gtk_tree_path.rb
gtk2-3.4.2 test/test_gtk_tree_path.rb
gtk2-3.4.1 test/test_gtk_tree_path.rb
gtk2-3.4.0 test/test_gtk_tree_path.rb
gtk2-3.3.9 test/test_gtk_tree_path.rb
gtk2-3.3.8 test/test_gtk_tree_path.rb
gtk2-3.3.7 test/test_gtk_tree_path.rb
gtk2-3.3.6 test/test_gtk_tree_path.rb
gtk2-3.3.5 test/test_gtk_tree_path.rb
gtk2-3.3.4 test/test_gtk_tree_path.rb
gtk2-3.3.3 test/test_gtk_tree_path.rb
gtk2-3.3.2 test/test_gtk_tree_path.rb
gtk2-3.3.1 test/test_gtk_tree_path.rb
gtk2-3.3.0 test/test_gtk_tree_path.rb
gtk2-3.2.9-x64-mingw32 test/test_gtk_tree_path.rb
gtk2-3.2.9-x86-mingw32 test/test_gtk_tree_path.rb
gtk2-3.2.9 test/test_gtk_tree_path.rb
gtk2-3.2.8-x64-mingw32 test/test_gtk_tree_path.rb
gtk2-3.2.8-x86-mingw32 test/test_gtk_tree_path.rb
gtk2-3.2.8 test/test_gtk_tree_path.rb