]> gitweb.factorcode.org Git - factor.git/commitdiff
io.encodings: add a test that tell doesn't work anymore.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 30 Mar 2016 22:19:04 +0000 (15:19 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 30 Mar 2016 22:19:04 +0000 (15:19 -0700)
core/io/encodings/encodings-tests.factor

index 1db972d635b81f13a0f732465b9b9d6ceef94fc6..c0807d1bff8976ddc775ea0efb8ee19279465f6c 100644 (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