Author: kkaempf Date: Wed Jan 9 13:51:29 2008 New Revision: 8243 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8243&view=rev Log: add Action tests Modified: trunk/sat-solver/bindings/ruby/tests/transaction.rb 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=8243&r1=8242&r2=8243&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/transaction.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/transaction.rb Wed Jan 9 13:51:29 2008 @@ -10,8 +10,6 @@ pool.arch = "i686" repo = pool.add_solv( "../../../testsuite/data.libzypp/basic-exercises/exercise-1-packages.solv" ) repo.name = "test" - puts "repo[0] #{repo[0]}" - puts "repo[1] #{repo[1]}" transaction = SatSolver::Transaction.new( pool ) assert transaction @@ -24,15 +22,15 @@ assert transaction.size == 6 transaction.each { |a| cmd = case a.cmd - when SatSolver::INSTALL_SOLVABLE: puts "install a." - 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" + when SatSolver::INSTALL_SOLVABLE: "install #{a.solvable}" + when SatSolver::REMOVE_SOLVABLE: "remove #{a.solvable}" + when SatSolver::INSTALL_SOLVABLE_NAME: "install by name #{a.name}" + when SatSolver::REMOVE_SOLVABLE_NAME: "remove by name #{a.name}" + when SatSolver::INSTALL_SOLVABLE_PROVIDES: "install by relation #{a.relation}" + when SatSolver::REMOVE_SOLVABLE_PROVIDES: "remove by relation #{a.relation}" else "<NONE>" end - puts "#{cmd}: #{a.id}" + puts cmd } transaction.clear! assert transaction.empty? -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org