You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By removing the option, which is effectively reverting the test changes because now the option is gone and what the tests added was tests that the option worked. Because the tests already have inference testing, even the inference test is unnecessary to keep so we're good.
Copy file name to clipboardExpand all lines: test/HessianTest.jl
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ import Calculus
5
5
using Test
6
6
using LinearAlgebra
7
7
using ForwardDiff
8
-
using ForwardDiff: Dual, maketag
8
+
using ForwardDiff: Dual, Tag
9
9
using StaticArrays
10
10
using DiffTests
11
11
@@ -23,8 +23,7 @@ h = [-66.0 -40.0 0.0;
23
23
-40.0130.0-80.0;
24
24
0.0-80.0200.0]
25
25
26
-
@testset"running hardcoded test with chunk size = $c and tag = $(repr(maketag(tag, (f, ForwardDiff.gradient), eltype(x))))"for c in HESSIAN_CHUNK_SIZES, tag in (nothing, :default, :small)
27
-
tag =maketag(tag, (f, ForwardDiff.gradient), eltype(x))
26
+
@testset"running hardcoded test with chunk size = $c and tag = $(repr(tag))"for c in HESSIAN_CHUNK_SIZES, tag in (nothing, Tag((f,ForwardDiff.gradient), eltype(x)))
@testset"$f with chunk size = $c and tag = $(repr(maketag(tag, (f, ForwardDiff.gradient), eltype(x))))"for c in HESSIAN_CHUNK_SIZES, tag in (nothing, :default, :small)
73
-
tag =maketag(tag, (f, ForwardDiff.gradient), eltype(x))
71
+
@testset"$f with chunk size = $c and tag = $(repr(tag))"for c in HESSIAN_CHUNK_SIZES, tag in (nothing, Tag((f,ForwardDiff.gradient), eltype(x)))
0 commit comments