Skip to content

Commit def844f

Browse files
committed
Expand specs for Float#<=> to catch more specialisation cases
1 parent 4f02f20 commit def844f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/ruby/core/float/comparison_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
it "returns nil when the given argument is not a Float" do
1616
(1.0 <=> "1").should be_nil
17+
(1.0 <=> "1".freeze).should be_nil
18+
(1.0 <=> :one).should be_nil
1719
end
1820

1921
it "compares using #coerce when argument is not a Float" do

0 commit comments

Comments
 (0)