mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-24 04:46:05 +08:00
add core/fixnum/size spec
This commit is contained in:
7
test/test-android/app/core/fixnum/size_spec.rb
Normal file
7
test/test-android/app/core/fixnum/size_spec.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
describe "Fixnum#size" do
|
||||
it "returns the number of bytes in the machine representation of self" do
|
||||
-1.size.should == 4
|
||||
0.size.should == 4
|
||||
4091.size.should == 4
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user