@@ -16,7 +16,7 @@ module Test
16
16
export @test , @test_throws , @test_broken , @test_skip , @test_warn , @test_nowarn
17
17
export @testset
18
18
# Legacy approximate testing functions, yet to be included
19
- export @test_approx_eq_eps , @ inferred
19
+ export @inferred
20
20
export detect_ambiguities
21
21
export GenericString
22
22
@@ -1004,6 +1004,8 @@ end
1004
1004
# -----------------------------------------------------------------------
1005
1005
# Legacy approximate testing functions, yet to be included
1006
1006
1007
+ # BEGIN TODO : deprecated in 0.6, delete in 1.0
1008
+ # vvv
1007
1009
approx_full (x:: AbstractArray ) = x
1008
1010
approx_full (x:: Number ) = x
1009
1011
approx_full (x) = full (x)
@@ -1050,8 +1052,11 @@ Test two floating point numbers `a` and `b` for equality taking into account
1050
1052
a margin of tolerance given by `tol`.
1051
1053
"""
1052
1054
macro test_approx_eq_eps (a, b, c)
1055
+ Base. depwarn (string (" @test_approx_eq_eps is deprecated, use `@test " , a, " ≈ " , b, " atol=" , c, " ` instead" ),
1056
+ Symbol (" @test_approx_eq_eps" ))
1053
1057
:(test_approx_eq ($ (esc (a)), $ (esc (b)), $ (esc (c)), $ (string (a)), $ (string (b))))
1054
1058
end
1059
+ export @test_approx_eq_eps
1055
1060
1056
1061
"""
1057
1062
@test_approx_eq(a, b)
@@ -1065,6 +1070,8 @@ macro test_approx_eq(a, b)
1065
1070
:(test_approx_eq ($ (esc (a)), $ (esc (b)), $ (string (a)), $ (string (b))))
1066
1071
end
1067
1072
export @test_approx_eq
1073
+ # ^^^
1074
+ # END TODO
1068
1075
1069
1076
_args_and_call (args... ; kwargs... ) = (args[1 : end - 1 ], kwargs, args[end ](args[1 : end - 1 ]. .. ; kwargs... ))
1070
1077
"""
0 commit comments