This repository has been archived on 2021-09-15 . You can view files and clone it, but cannot push or open issues or pull requests.
21 lines
499 B
Ruby
21 lines
499 B
Ruby
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
|