diff options
author | Josef Reidinger <jreidinger@suse.cz> | 2012-02-13 11:39:35 +0100 |
---|---|---|
committer | Josef Reidinger <jreidinger@suse.cz> | 2012-02-13 11:39:35 +0100 |
commit | 40856264c85c37d82c4be405ba104726826ad8f5 (patch) | |
tree | c3d76c08540c550690cc86b3240c758f2f07e906 /swig/ruby | |
parent | 60fc3705dcc2fa90755253116ca230be9ce82988 (diff) | |
download | libzypp-bindings-40856264c85c37d82c4be405ba104726826ad8f5.tar.gz libzypp-bindings-40856264c85c37d82c4be405ba104726826ad8f5.tar.bz2 libzypp-bindings-40856264c85c37d82c4be405ba104726826ad8f5.zip |
extend test suite
Diffstat (limited to 'swig/ruby')
-rw-r--r-- | swig/ruby/tests/target.rb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/swig/ruby/tests/target.rb b/swig/ruby/tests/target.rb index a7dfe3e..0ea0bc0 100644 --- a/swig/ruby/tests/target.rb +++ b/swig/ruby/tests/target.rb @@ -33,31 +33,28 @@ class LoadTest < Test::Unit::TestCase p.each do | pi | i = i + 1 break if i > 10 - puts pi # PoolItems have status and a resolvable r = pi.resolvable - puts "#{r.name}-#{r.edition}" + assert pi.is_a? PoolItem end - puts "packages:" #try iterate with kind i = 0 p.each_by_kind(ResKind.package) do |pi| i = i + 1 break if i > 10 - puts pi + assert pi.is_a? PoolItem r = pi.resolvable - puts "#{r.name}-#{r.edition}" + assert isKindPackage(pi) end i = 0 - puts "by name libzypp" p.each_by_name("libzypp") do |pi| i = i + 1 break if i > 10 - puts pi + assert pi.is_a? PoolItem r = pi.resolvable - puts "#{r.name}-#{r.edition}" + assert_equal "libzypp",r.name end assert true |