Skip to content

Commit e9490dc

Browse files
authored
Add test that show does not index (#152)
1 parent c817c5f commit e9490dc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/runtests.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,14 @@ end
831831
@test offsets == [1:5, 6:8, 9:13, 14:14]
832832
end
833833

834+
@testset "Show not indexing" begin
835+
A = AccessCountDiskArray(rand(19,10))
836+
sprint(show, MIME("text/plain"), A)
837+
@test getindex_count(A) == 0
838+
sprint(show, [A,A])
839+
@test getindex_count(A) == 0
840+
end
841+
834842
# @test offsets == [[1:1,2:3,4:4],[5:5,6:6,7:7],[8:8,9:9]]
835843
# inds = [1,1,1,3,5,6,6,7,10,13,16,16,19,20]
836844
# readranges, offsets = find_subranges_sorted(inds,false)

0 commit comments

Comments
 (0)