Author: kkaempf Date: Thu Aug 7 18:09:10 2008 New Revision: 10788 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10788&view=rev Log: add mb example Modified: trunk/libzypp-bindings/swig/ruby/tests/bytecount.rb Modified: trunk/libzypp-bindings/swig/ruby/tests/bytecount.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-bindings/swig/ruby/tests/bytecount.rb?rev=10788&r1=10787&r2=10788&view=diff ============================================================================== --- trunk/libzypp-bindings/swig/ruby/tests/bytecount.rb (original) +++ trunk/libzypp-bindings/swig/ruby/tests/bytecount.rb Thu Aug 7 18:09:10 2008 @@ -12,13 +12,14 @@ require 'zypp' include Zypp - def test_loading - + def test_bytecount g = ByteCount.new(ByteCount.G) assert g gb = ByteCount.new(ByteCount.GB) assert gb k = ByteCount.new(ByteCount.K) assert k.to_i == 1024 + mb = ByteCount.new(ByteCount.MB) + assert mb.to_i == 1000*1000 end end -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org