@@ -34,15 +34,15 @@ using IrrationalConstants
34
34
35
35
# ## infinite args or return values
36
36
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
39
39
@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 )
42
42
@test @inferred (lambertw (complex (0.0 , 0.0 ), - 1 )) == complex (- Inf , 0.0 )
43
43
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 ) )
46
46
47
47
# # BigInt args return BigFloats
48
48
@test @inferred (lambertw (BigInt (0 ))) isa BigFloat
0 commit comments