diff options
author | Josef Reidinger <jreidinger@suse.cz> | 2012-02-11 13:32:56 +0100 |
---|---|---|
committer | tux <tux@linux-hmt5.(none)> | 2012-02-11 20:04:02 +0100 |
commit | 1c2be9c735fad839e3f107d3b3bfb5e154e76bb7 (patch) | |
tree | d198f40a065ec4b531febaadc3d68e18fc820c7f /swig | |
parent | cad1c1dd814d21561bb211d101f1561249536a27 (diff) | |
download | libzypp-bindings-1c2be9c735fad839e3f107d3b3bfb5e154e76bb7.tar.gz libzypp-bindings-1c2be9c735fad839e3f107d3b3bfb5e154e76bb7.tar.bz2 libzypp-bindings-1c2be9c735fad839e3f107d3b3bfb5e154e76bb7.zip |
add test to show that it works
Diffstat (limited to 'swig')
-rw-r--r-- | swig/ruby/tests/target.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/swig/ruby/tests/target.rb b/swig/ruby/tests/target.rb index cfecfff..14bc0e4 100644 --- a/swig/ruby/tests/target.rb +++ b/swig/ruby/tests/target.rb @@ -38,6 +38,23 @@ class LoadTest < Test::Unit::TestCase # r = pi.resolvable # puts "#{r.name}-#{r.edition}" 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 + end + + i = 0 + puts "by name libzypp" + p.each_by_name("libzypp") do |pi| + i = i + 1 + break if i > 10 + puts pi + end assert true end |