Skip to content

Commit ad5616e

Browse files
committed
test repr
1 parent 4d3d939 commit ad5616e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ using Base.Test
77
stream = TranscodingStream(Identity(), source)
88
@test eof(stream)
99
@test read(stream) == UInt8[]
10+
@test contains(repr(stream), "state=read")
1011
close(stream)
1112

1213
source = IOBuffer("foo")
@@ -25,6 +26,7 @@ using Base.Test
2526
sink = IOBuffer()
2627
stream = TranscodingStream(Identity(), sink)
2728
@test write(stream, "foo") === 3
29+
@test contains(repr(stream), "state=write")
2830
flush(stream)
2931
@test take!(sink) == b"foo"
3032
close(stream)

0 commit comments

Comments
 (0)