Skip to content

Commit bea4d64

Browse files
committed
rm some testsets
1 parent 6c58dd4 commit bea4d64

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

test/DualTest.jl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ ForwardDiff.:≺(::Int, ::Type{TestTag()}) = false
226226

227227
# Predicates #
228228
#------------#
229-
@testset "Predicates" begin
230229

231230
@test ForwardDiff.isconstant(zero(FDNUM))
232231
@test ForwardDiff.isconstant(one(FDNUM))
@@ -337,7 +336,6 @@ ForwardDiff.:≺(::Int, ::Type{TestTag()}) = false
337336
@test isodd(Dual{TestTag()}(Dual{TestTag()}(1)))
338337
@test !(isodd(Dual{TestTag()}(Dual{TestTag()}(2))))
339338

340-
end
341339
########################
342340
# Promotion/Conversion #
343341
########################
@@ -411,7 +409,6 @@ ForwardDiff.:≺(::Int, ::Type{TestTag()}) = false
411409

412410
# Division #
413411
#----------#
414-
@testset "Division" begin
415412

416413
if M > 0 && N > 0
417414
# Recall that FDNUM = Dual{TestTag()}(PRIMAL, PARTIALS) has N partials,
@@ -432,11 +429,8 @@ ForwardDiff.:≺(::Int, ::Type{TestTag()}) = false
432429
@test dual_isapprox(NESTED_FDNUM / PRIMAL, Dual{TestTag()}(value(NESTED_FDNUM) / PRIMAL, partials(NESTED_FDNUM) / PRIMAL))
433430
@test dual_isapprox(PRIMAL / NESTED_FDNUM, Dual{TestTag()}(PRIMAL / value(NESTED_FDNUM), (-(PRIMAL) / value(NESTED_FDNUM)^2) * partials(NESTED_FDNUM)))
434431

435-
end
436-
437432
# Exponentiation #
438433
#----------------#
439-
@testset "Exponentiation" begin
440434

441435
# If V == Int, the LHS terms are Int's. Large inputs cause integer overflow
442436
# within the generic fallback of `isapprox`, resulting in a DomainError.
@@ -451,7 +445,6 @@ ForwardDiff.:≺(::Int, ::Type{TestTag()}) = false
451445

452446
@test partials(NaNMath.pow(Dual{TestTag()}(-2.0, 1.0), Dual{TestTag()}(2.0, 0.0)), 1) == -4.0
453447

454-
end
455448
###################################
456449
# General Mathematical Operations #
457450
###################################
@@ -544,7 +537,6 @@ ForwardDiff.:≺(::Int, ::Type{TestTag()}) = false
544537

545538
# Special Cases #
546539
#---------------#
547-
@testset "Special Cases" begin
548540

549541
@test_broken dual_isapprox(hypot(FDNUM, FDNUM2, FDNUM), sqrt(2*(FDNUM^2) + FDNUM2^2))
550542
@test_broken dual_isapprox(hypot(FDNUM, FDNUM2, FDNUM3), sqrt(FDNUM^2 + FDNUM2^2 + FDNUM3^2))
@@ -569,8 +561,7 @@ ForwardDiff.:≺(::Int, ::Type{TestTag()}) = false
569561
@test dual_isapprox(f(FDNUM, PRIMAL2, PRIMAL3), Dual{TestTag()}(f(PRIMAL, PRIMAL2, PRIMAL3), PRIMAL2*PARTIALS))
570562
@test dual_isapprox(f(PRIMAL, PRIMAL2, FDNUM3), Dual{TestTag()}(f(PRIMAL, PRIMAL2, PRIMAL3), PARTIALS3))
571563
end
572-
573-
end # testset
564+
574565
end
575566

576567
#############

0 commit comments

Comments
 (0)