Author: aschnell Date: Thu Aug 23 16:29:09 2007 New Revision: 6842 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6842&view=rev Log: - a bit shorter ruby code Modified: trunk/libzypp-testsuite/pokus/src/testsuite.rb Modified: trunk/libzypp-testsuite/pokus/src/testsuite.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/pokus/src/testsuite.rb?rev=6842&r1=6841&r2=6842&view=diff ============================================================================== --- trunk/libzypp-testsuite/pokus/src/testsuite.rb (original) +++ trunk/libzypp-testsuite/pokus/src/testsuite.rb Thu Aug 23 16:29:09 2007 @@ -70,19 +70,16 @@ # TODO: can't this be done more elegant? + # Maybe define to_a functions. def Testsuite.haha1(x) y = Array.new - x.each do |z| - y << z - end + x.each {|z| y << z} return y.sort end def Testsuite.haha2(x) y = Array.new - x.each do |z| - y << z - end + x.each {|z| y << z} y.map! {|a| a.resolvable} return y.sort end -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org