Skip to content

Commit 033043e

Browse files
authored
showall -> showfull (#203)
1 parent 451c9cf commit 033043e

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

benchmark/benchmarks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
- using PkgBenchmark
55
66
- results = benchmarkpkg("IntervalArithmetic")
7-
- showall(results)
7+
- show(results)
88
99
To compare the current version with a given release use `judge`:
1010
1111
- results = judge("IntervalArithmetic", tag)
12-
- showall(results)
12+
- show(results)
1313
1414
To export the benchmark results to a markdown file, do:
1515

docs/src/rounding.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ julia> using IntervalArithmetic
3333
julia> II = Interval(0.1)
3434
[0.1, 0.100001]
3535
36-
julia> showall(II)
36+
julia> showfull(II)
3737
Interval(0.1, 0.1)
3838
```
3939

@@ -59,7 +59,7 @@ then we can apply the function `f` to the interval `a` to obtain
5959
julia> f(a)
6060
[0.399999, 0.400001]
6161
62-
julia> showall(f(a))
62+
julia> showfull(f(a))
6363
Interval(0.39999999999999997, 0.4)
6464
```
6565
The result correctly contains the true 0.4.

docs/src/usage.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ By default, `Interval` objects contain `Float64`s, but the library also allows u
2828
julia> @biginterval(1, 2)
2929
[1, 2]₂₅₆
3030
31-
julia> showall(ans)
31+
julia> showfull(ans)
3232
Interval(1.000000000000000000000000000000000000000000000000000000000000000000000000000000, 2.000000000000000000000000000000000000000000000000000000000000000000000000000000)
3333
```
3434

@@ -117,10 +117,10 @@ use the `Interval` constructor directly:
117117
julia> a = Interval(0.1)
118118
[0.1, 0.100001]
119119
120-
julia> showall(a)
120+
julia> showfull(a)
121121
Interval(0.1, 0.1)
122122
```
123-
Here, the `showall` function shows the internal representation of the interval,
123+
Here, the `showfull` function shows the internal representation of the interval,
124124
in a reproducible form that may be copied and pasted directly. It uses Julia's
125125
internal function (which, in turn, uses the so-called Grisu algorithm) to show
126126
exactly as many digits are required to give an unambiguous floating-point number.
@@ -133,7 +133,7 @@ julia> @interval "0.1"*2
133133
julia> @biginterval "0.1"*2
134134
[0.199999, 0.200001]₂₅₆
135135
136-
julia> showall(ans)
136+
julia> showfull(ans)
137137
Interval(1.999999999999999999999999999999999999999999999999999999999999999999999999999983e-01, 2.000000000000000000000000000000000000000000000000000000000000000000000000000004e-01)
138138
139139
```
@@ -237,7 +237,7 @@ This may be changed globally using the `setprecision` function:
237237
julia> @interval 3π/2 + 1
238238
[5.71238, 5.71239]
239239
240-
julia> showall(ans)
240+
julia> showfull(ans)
241241
Interval(5.71238898038469, 5.712388980384691)
242242
243243
julia> setprecision(Interval, 256)
@@ -246,7 +246,7 @@ julia> setprecision(Interval, 256)
246246
julia> @interval 3π/2 + 1
247247
[5.71238, 5.71239]₂₅₆
248248
249-
julia> showall(ans)
249+
julia> showfull(ans)
250250
Interval(5.712388980384689857693965074919254326295754099062658731462416888461724609429262, 5.712388980384689857693965074919254326295754099062658731462416888461724609429401)
251251
```
252252
The subscript `256` at the end denotes the precision.
@@ -356,7 +356,7 @@ the following options, specified by keyword arguments (type `?setformat` to get
356356

357357
- `:standard`: output of the form `[1.09999, 1.30001]`, rounded to the current number of significant figures
358358

359-
- `:full`: output of the form `Interval(1.0999999999999999, 1.3)`, as in the `showall` function
359+
- `:full`: output of the form `Interval(1.0999999999999999, 1.3)`, as in the `showfull` function
360360

361361
- `:midpoint`: output in the midpoint-radius form, e.g. `1.2 ± 0.100001`
362362

src/IntervalArithmetic.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ export
6767

6868

6969
if VERSION < v"1.0-dev"
70-
import Base.showall
70+
import Base.showfull
7171
end
7272

73-
export showall
73+
export showfull
7474

7575
import Base: rounding, setrounding, setprecision
7676

src/display.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@ end
256256

257257
for T in (Interval, DecoratedInterval)
258258
@eval show(io::IO, a::$T{S}) where S = print(io, representation(a))
259-
@eval showall(io::IO, a::$T{S}) where S = print(io, representation(a, :full))
259+
@eval showfull(io::IO, a::$T{S}) where S = print(io, representation(a, :full))
260260
end
261261

262262
T = IntervalBox
263263
@eval show(io::IO, a::$T) = print(io, representation(a))
264264
@eval show(io::IO, ::MIME"text/plain", a::$T) = print(io, representation(a))
265-
@eval showall(io::IO, a::$T) = print(io, representation(a, :full))
265+
@eval showfull(io::IO, a::$T) = print(io, representation(a, :full))

test/display_tests/display.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,25 +162,25 @@ setprecision(Interval, Float64)
162162
end
163163
end
164164

165-
@testset "showall" begin
165+
@testset "showfull" begin
166166
setformat(:standard, decorations=false, sigfigs=6)
167167
setprecision(128)
168168

169169
x = 0..1
170170
@test string(x) == "[0, 1]"
171-
@test sprint(showall, x) == "Interval(0.0, 1.0)"
171+
@test sprint(showfull, x) == "Interval(0.0, 1.0)"
172172

173173
x = @biginterval(0, 1)
174174
@test string(x) == "[0, 1]₁₂₈"
175-
@test sprint(showall, x) == "Interval(0.0, 1.0)"
175+
@test sprint(showfull, x) == "Interval(0.0, 1.0)"
176176

177177
x = DecoratedInterval(0, 1, dac)
178178
@test string(x) == "[0, 1]"
179-
@test sprint(showall, x) == "DecoratedInterval(Interval(0.0, 1.0), dac)"
179+
@test sprint(showfull, x) == "DecoratedInterval(Interval(0.0, 1.0), dac)"
180180

181181
x = DecoratedInterval(big(0), big(1), def)
182182
@test string(x) == "[0, 1]₁₂₈"
183-
@test sprint(showall, x) == "DecoratedInterval(Interval(0.0, 1.0), def)"
183+
@test sprint(showfull, x) == "DecoratedInterval(Interval(0.0, 1.0), def)"
184184

185185
setformat(decorations=true)
186186
@test string(x) == "[0, 1]₁₂₈_def"

0 commit comments

Comments
 (0)