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 5323612 commit a797ad5Copy full SHA for a797ad5
test/math.jl
@@ -391,12 +391,18 @@ end
391
T != Rational{Int} && @test sind(convert(T,-0.0))::fT === -zero(fT)
392
@test sind(convert(T,-180.0))::fT === -zero(fT)
393
@test sind(convert(T,-360.0))::fT === -zero(fT)
394
+ if T <: AbstractFloat
395
+ @test isnan(sind(T(NaN)))
396
+ end
397
end
398
@testset "cosd" begin
399
@test cosd(convert(T,90))::fT === zero(fT)
400
@test cosd(convert(T,270))::fT === zero(fT)
401
@test cosd(convert(T,-90))::fT === zero(fT)
402
@test cosd(convert(T,-270))::fT === zero(fT)
403
404
+ @test isnan(cosd(T(NaN)))
405
406
407
@testset "sincosd" begin
408
@test sincosd(convert(T,-360))::fTsc === ( -zero(fT), one(fT) )
0 commit comments