Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions core/math/log10_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
-> { Math.log10("test") }.should raise_error(TypeError)
end

it "raises a TypeError if passed a numerical argument as a string" do
-> { Math.log10("1.0") }.should raise_error(TypeError)
end

it "returns NaN given NaN" do
Math.log10(nan_value).nan?.should be_true
end
Expand Down