projects
/
platform
/
upstream
/
libzypp-bindings.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5529441
)
add mb example
author
Klaus Kaempf
<kkaempf@suse.de>
Thu, 7 Aug 2008 16:09:10 +0000
(16:09 +0000)
committer
Klaus Kaempf
<kkaempf@suse.de>
Thu, 7 Aug 2008 16:09:10 +0000
(16:09 +0000)
swig/ruby/tests/bytecount.rb
patch
|
blob
|
history
diff --git
a/swig/ruby/tests/bytecount.rb
b/swig/ruby/tests/bytecount.rb
index
559d7ab
..
5b46e14
100755
(executable)
--- a/
swig/ruby/tests/bytecount.rb
+++ b/
swig/ruby/tests/bytecount.rb
@@
-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