Mailinglist Archive: zypp-commit (168 mails)

< Previous Next >
[zypp-commit] r8159 - in /trunk/sat-solver/bindings/ruby/tests: pool.rb solver.rb transaction.rb
  • From: kkaempf@xxxxxxxxxxxxxxxx
  • Date: Fri, 28 Dec 2007 20:39:39 -0000
  • Message-id: <20071228203940.08F4D23BE1@xxxxxxxxxxxxxxxx>
Author: kkaempf
Date: Fri Dec 28 21:39:39 2007
New Revision: 8159

URL: http://svn.opensuse.org/viewcvs/zypp?rev=8159&view=rev
Log:
adapt tests to naming

Modified:
trunk/sat-solver/bindings/ruby/tests/pool.rb
trunk/sat-solver/bindings/ruby/tests/solver.rb
trunk/sat-solver/bindings/ruby/tests/transaction.rb

Modified: trunk/sat-solver/bindings/ruby/tests/pool.rb
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/pool.rb?rev=8159&r1=8158&r2=8159&view=diff
==============================================================================
--- trunk/sat-solver/bindings/ruby/tests/pool.rb (original)
+++ trunk/sat-solver/bindings/ruby/tests/pool.rb Fri Dec 28 21:39:39 2007
@@ -7,6 +7,6 @@
def test_pool
pool = SatSolver::Pool.new
assert pool
- assert pool.repo_count == 0
+ assert pool.count_repos == 0
end
end

Modified: trunk/sat-solver/bindings/ruby/tests/solver.rb
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/solver.rb?rev=8159&r1=8158&r2=8159&view=diff
==============================================================================
--- trunk/sat-solver/bindings/ruby/tests/solver.rb (original)
+++ trunk/sat-solver/bindings/ruby/tests/solver.rb Fri Dec 28 21:39:39 2007
@@ -14,7 +14,7 @@

transaction = SatSolver::Transaction.new( pool )
transaction.install( "A" )
- transaction.erase( "xorg-x11" )
+ transaction.remove( "xorg-x11" )

solver = SatSolver::Solver.new( pool, system )
solver.allow_uninstall = 1
@@ -22,8 +22,8 @@
solver.each_to_install { |s|
puts "Install #{s}"
}
- solver.each_to_erase { |s|
- puts "Erase #{s}"
+ solver.each_to_remove { |s|
+ puts "Remove #{s}"
}
end
end

Modified: trunk/sat-solver/bindings/ruby/tests/transaction.rb
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/transaction.rb?rev=8159&r1=8158&r2=8159&view=diff
==============================================================================
--- trunk/sat-solver/bindings/ruby/tests/transaction.rb (original)
+++ trunk/sat-solver/bindings/ruby/tests/transaction.rb Fri Dec 28 21:39:39 2007
@@ -18,18 +18,18 @@
transaction.install( "foo" )
transaction.install( repo[0] )
transaction.install( SatSolver::Relation.new( pool, "foo",
SatSolver::REL_EQ, "42-7" ) )
- transaction.erase( "bar" )
- transaction.erase( repo[1] )
- transaction.erase( SatSolver::Relation.new( pool, "bar",
SatSolver::REL_EQ, "42-7" ) )
+ transaction.remove( "bar" )
+ transaction.remove( repo[1] )
+ transaction.remove( SatSolver::Relation.new( pool, "bar",
SatSolver::REL_EQ, "42-7" ) )
assert transaction.size == 6
transaction.each { |a|
cmd = case a.cmd
when SatSolver::INSTALL_SOLVABLE: "install"
- when SatSolver::ERASE_SOLVABLE: "erase"
- when SatSolver::INSTALL_SOLVABLE_NAME: "install name"
- when SatSolver::ERASE_SOLVABLE_NAME: "erase name"
- when SatSolver::INSTALL_SOLVABLE_PROVIDES: "install relation"
- when SatSolver::ERASE_SOLVABLE_PROVIDES: "erase relation"
+ when SatSolver::REMOVE_SOLVABLE: "remove"
+ when SatSolver::INSTALL_SOLVABLE_NAME: "install by name"
+ when SatSolver::REMOVE_SOLVABLE_NAME: "remove by name"
+ when SatSolver::INSTALL_SOLVABLE_PROVIDES: "install by relation"
+ when SatSolver::REMOVE_SOLVABLE_PROVIDES: "remove by relation"
else "<NONE>"
end
puts "#{cmd}: #{pool.idname(a.id)}"

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages