Skip to content

Commit 74ae519

Browse files
authored
Replace Base64.stringmime by sprint (#183)
1 parent 6b04338 commit 74ae519

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ ArrayLayoutsSparseArraysExt = "SparseArrays"
1616

1717
[compat]
1818
Aqua = "0.8"
19-
Base64 = "1.6"
2019
FillArrays = "1.2.1"
2120
LinearAlgebra = "1.6"
2221
Random = "1.6"
@@ -27,11 +26,10 @@ julia = "1.6"
2726

2827
[extras]
2928
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
30-
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
3129
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
3230
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
3331
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
3432
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3533

3634
[targets]
37-
test = ["Aqua", "Base64", "Random", "StableRNGs", "SparseArrays", "Test"]
35+
test = ["Aqua", "Random", "StableRNGs", "SparseArrays", "Test"]

test/runtests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using ArrayLayouts
22
import Aqua
3-
using Base64
43
using FillArrays
54
using Random
65
using SparseArrays

test/test_layoutarray.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using ArrayLayouts, LinearAlgebra, FillArrays, Base64, Test
1+
using ArrayLayouts, LinearAlgebra, FillArrays, Test
22
using ArrayLayouts: sub_materialize, MemoryLayout, ColumnNorm, RowMaximum, CRowMaximum
33

44
struct MyMatrix <: LayoutMatrix{Float64}
@@ -37,7 +37,7 @@ MemoryLayout(::Type{MyVector}) = DenseColumnMajor()
3737
@test a[1:3] == a.A[1:3]
3838
@test a[:] == a
3939
@test (a')[1,:] == (a')[1,1:3] == a
40-
@test stringmime("text/plain", a) == "3-element MyVector{Float64}:\n 1.0\n 2.0\n 3.0"
40+
@test sprint(show, "text/plain", a) == "3-element MyVector{Float64}:\n 1.0\n 2.0\n 3.0"
4141
@test B*a B*a.A
4242
@test B'*a B'*a.A
4343
@test transpose(B)*a transpose(B)*a.A
@@ -209,7 +209,7 @@ MemoryLayout(::Type{MyVector}) = DenseColumnMajor()
209209
end
210210

211211
C = MyMatrix([1 2; 3 4])
212-
@test stringmime("text/plain", C) == "2×2 MyMatrix:\n 1.0 2.0\n 3.0 4.0"
212+
@test sprint(show, "text/plain", C) == "2×2 MyMatrix:\n 1.0 2.0\n 3.0 4.0"
213213

214214
@testset "layoutldiv" begin
215215
A = MyMatrix(randn(5,5))

0 commit comments

Comments
 (0)