Skip to content

Commit

Permalink
Add io[:flush]() test
Browse files Browse the repository at this point in the history
  • Loading branch information
cstjean committed May 17, 2016
1 parent 31a80a2 commit a551fa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ let buf = IOBuffer(false, true), obuf = PyObject(buf)
@test !obuf[:readable]()
@test obuf[:seekable]()
obuf[:write](pyutf8("hello"))
obuf[:flush]() # should be a no-op, since there's no flushing IOBuffer
@test position(buf) == obuf[:tell]() == 5
let p = obuf[:seek](-2, 1)
@test p == position(buf) == 3
Expand Down

0 comments on commit a551fa2

Please sign in to comment.