blob: c1043ef21b18cdd77f1c46dda0238a0d314f0bf8 (
plain)
1
2
3
4
5
6
7
8
9
|
require_relative '../../spec_helper'
describe "Float#nan?" do
it "returns true if self is not a valid IEEE floating-point number" do
0.0.should_not.nan?
-1.5.should_not.nan?
nan_value.should.nan?
end
end
|