Skip to content

Commit 252b605

Browse files
committed
Fix tests again, and clean-up
1 parent 877a9eb commit 252b605

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ext/TaylorSeriesIAExt.jl

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ function ^(a::Taylor1{Interval{T}}, r::S) where {T<:NumTypes, S<:Real}
8080
# aa = one(aux) * a
8181
aa = convert(Taylor1{typeof(aux)}, a)
8282
aa[0] = one(aux) * a0
83-
@show(aa)
8483
r == 1 && return aa
8584
r == 2 && return TS.square(aa)
8685
r == 1/2 && return sqrt(aa)

test/intervals.jl

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ using TaylorSeries, IntervalArithmetic
66
using Test
77
# eeuler = Base.MathConstants.e
88

9+
setdisplay(:full)
10+
911
@testset "Tests Taylor1 and TaylorN expansions over Intervals" begin
1012
a = interval(1, 2)
1113
b = interval(-1, 1)
@@ -175,8 +177,8 @@ using Test
175177
@test_throws DomainError acosh(interval(0.0, 1.0) + x)
176178
@test acosh(interval(0.0, 2.0) + x) == acosh(interval(1.0, 2.0) + x)
177179
# atanh defined on interval(-1,1)
178-
@test_logs (:warn, "invalid interval, empty interval is returned") @test_throws DomainError atanh(interval(1.0, 1.0) + ti)
180+
@test_logs (:warn, "ill-formed bare interval [a, b] with a = Inf, b = Inf. Empty interval is returned") @test_throws DomainError atanh(interval(1.0, 1.0) + ti)
179181
@test atanh(interval(-2.0, 0.0) + ti) == atanh(interval(-1.0, 0.0) + ti)
180-
@test_logs (:warn, "invalid interval, empty interval is returned") @test_throws DomainError atanh(interval(1.0, 1.0) + y)
182+
@test_logs (:warn, "ill-formed bare interval [a, b] with a = Inf, b = Inf. Empty interval is returned") @test_throws DomainError atanh(interval(1.0, 1.0) + y)
181183
@test atanh(interval(-2.0, 0.0) + y) == atanh(interval(-1.0, 0.0) + y)
182184
end

0 commit comments

Comments
 (0)