We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b092a48 commit 717036dCopy full SHA for 717036d
1 file changed
core/math/log10_spec.rb
@@ -23,6 +23,10 @@
23
-> { Math.log10("test") }.should raise_error(TypeError)
24
end
25
26
+ it "raises a TypeError if passed a numerical argument as a string" do
27
+ -> { Math.log10("1.0") }.should raise_error(TypeError)
28
+ end
29
+
30
it "returns NaN given NaN" do
31
Math.log10(nan_value).nan?.should be_true
32
0 commit comments