add mb example
authorKlaus Kaempf <kkaempf@suse.de>
Thu, 7 Aug 2008 16:09:10 +0000 (16:09 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Thu, 7 Aug 2008 16:09:10 +0000 (16:09 +0000)
swig/ruby/tests/bytecount.rb

index 559d7ab..5b46e14 100755 (executable)
@@ -12,13 +12,14 @@ class LoadTest < Test::Unit::TestCase
   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