mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
9 lines
184 B
Ruby
9 lines
184 B
Ruby
require_relative '../../spec_helper'
|
|
|
|
describe "Float#zero?" do
|
|
it "returns true if self is 0.0" do
|
|
0.0.should.zero?
|
|
1.0.should_not.zero?
|
|
-1.0.should_not.zero?
|
|
end
|
|
end
|