Skip to content

Commit cd68bce

Browse files
committed
weird test fix
1 parent 1964b8d commit cd68bce

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

test/manifolds/manifolddiff.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,13 @@ end
145145
X = hat(M, e0, zeros(3))
146146
g_FD!(X, q)
147147
# gradient at the optimal point should be zero
148-
@show X_ = abs.(X[:])
149-
@test isapprox(0, sum(X_); atol=1e-8 )
148+
@show X_ = X[:]
149+
@test isapprox(0, sum(abs.(X_)); atol=1e-8 )
150150

151151
# gradient not the optimal point should be non-zero
152152
g_FD!(X, e0)
153-
@test 0.01 < sum(abs.(X[:]))
153+
@show X_ = X[:]
154+
@test 0.01 < sum(abs.(X_))
154155

155156
## do optimization
156157
x0 = deepcopy(e0)

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ end
1111

1212
if TEST_GROUP in ["all", "basic_functional_group"]
1313
# more frequent stochasic failures from numerics
14+
include("manifolds/manifolddiff.jl")
1415
include("testSpecialEuclidean2Mani.jl")
1516
include("testEuclidDistance.jl")
1617

1718
# regular testing
1819
include("testSphereMani.jl")
1920
include("testSpecialOrthogonalMani.jl")
2021
include("testBasicManifolds.jl")
21-
include("manifolds/manifolddiff.jl")
2222

2323
# start as basic as possible and build from there
2424
include("typeReturnMemRef.jl")

0 commit comments

Comments
 (0)