io.encodings: add a test that tell doesn't work anymore.

locals-and-roots
John Benediktsson 2016-03-30 15:19:04 -07:00
parent 48b3ec47f7
commit 267706c4d6
1 changed files with 8 additions and 0 deletions

View File

@ -99,3 +99,11 @@ unit-test
"t" read-until
] with-byte-reader
] unit-test
! shouldn't be able to tell on (underlying) stream of a decoder
! because it's confusing when you read1 character and tell is
! greater than 1.
[
"hello world" utf8 encode
utf8 [ tell-input ] with-byte-reader
] must-fail