mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
add core/float/zero spec
This commit is contained in:
7
test/test-android/app/core/float/zero_spec.rb
Normal file
7
test/test-android/app/core/float/zero_spec.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
describe "Float#zero?" do
|
||||
it "returns true if self is 0.0" do
|
||||
0.0.zero?.should == true
|
||||
1.0.zero?.should == false
|
||||
-1.0.zero?.should == false
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user