# File gtk2/test/test_gtk_tree_path.rb, line 4 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
# File gtk2/test/test_gtk_tree_path.rb, line 10 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