spec/nsstring_spec.rb in sugarcube-0.18.21 vs spec/nsstring_spec.rb in sugarcube-0.19.0
- old
+ new
@@ -91,6 +91,11 @@
it "should have a #localized method" do
'hello'.localized.should == 'howdy'
'hello'._.should == 'howdy'
end
+ it "should have a #nan? method" do
+ "pi".nan?.should.equal true
+ "3.12159".nan?.should.equal false
+ end
+
end