Skip to content

Commit dbe6a27

Browse files
kbarrospkofod
andauthored
Update test/captured.jl
Co-authored-by: Patrick Kofod Mogensen <patrick.mogensen@gmail.com>
1 parent 96991b8 commit dbe6a27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/captured.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ end
4343
ϕ0 = ϕ(0.0)
4444
dϕ0 = (0.0)
4545

46-
(; value) = @test_throws LineSearchException (HagerZhang())(ϕ, dϕ, ϕdϕ, α0, ϕ0, dϕ0)
47-
@test value.alpha > α0 # Should be something gigantic like 1e34
46+
_error_msg = @test_throws LineSearchException (HagerZhang())(ϕ, dϕ, ϕdϕ, α0, ϕ0, dϕ0)
47+
@test _error_msg.value.alpha > α0 # Should be something gigantic like 1e34
4848
end

0 commit comments

Comments
 (0)