@@ -34,15 +34,15 @@ using IrrationalConstants
3434
3535# ## infinite args or return values
3636
37- @test lambertw (0 , - 1 ) == lambertw (0.0 , - 1 ) == - Inf
38- @test lambertw (Inf , 0 ) == Inf
37+ @test @inferred ( lambertw (0 , - 1 )) == @inferred ( lambertw (0.0 , - 1 ) ) == - Inf
38+ @test @inferred ( lambertw (Inf , 0 ) ) == Inf
3939@test @inferred (lambertw (complex (Inf , 1 ), 0 )) == complex (Inf , 1 )
40- @test lambertw (complex (Inf , 0 ), 1 ) == complex (Inf , 2pi )
41- @test lambertw (complex (- Inf , 0 ), 1 ) == complex (Inf , 3pi )
40+ @test @inferred ( lambertw (complex (Inf , 0 ), 1 ) ) == complex (Inf , 2pi )
41+ @test @inferred ( lambertw (complex (- Inf , 0 ), 1 ) ) == complex (Inf , 3pi )
4242@test @inferred (lambertw (complex (0.0 , 0.0 ), - 1 )) == complex (- Inf , 0.0 )
4343
44- # # default branch is k = 0
45- @test lambertw (1.0 ) == lambertw (1.0 , 0 )
44+ # # default branch is k = 0
45+ @test @inferred ( lambertw (1.0 )) == @inferred ( lambertw (1.0 , 0 ) )
4646
4747# # BigInt args return BigFloats
4848@test @inferred (lambertw (BigInt (0 ))) isa BigFloat
0 commit comments