Skip to content

Commit 126d2b7

Browse files
committed
Add unhappy path test
1 parent 8a14ce2 commit 126d2b7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/check_result.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ end
9797
@test fails(() -> test_approx(@thunk(10 * [[1.0], [2.0]]), [[1.0], [2.0]]))
9898

9999
@test fails(() -> test_approx(@not_implemented("a"), @not_implemented("b")))
100+
101+
# should fail, not ambig error
102+
@test fails() do
103+
test_approx(
104+
Tangent{Tuple{Float64,Float64}}(1.0, 2.0),
105+
@thunk(Tangent{Tuple{Float64,Float64}}(2.0, 2.0)),
106+
)
107+
end
100108
end
101109
@testset "type negative" begin
102110
@test fails() do # these have different primals so should not be equal

0 commit comments

Comments
 (0)