From 267706c4d6851cbd3533606539cde6e26f1d9367 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Wed, 30 Mar 2016 15:19:04 -0700 Subject: [PATCH] io.encodings: add a test that tell doesn't work anymore. --- core/io/encodings/encodings-tests.factor | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/io/encodings/encodings-tests.factor b/core/io/encodings/encodings-tests.factor index 1db972d635..c0807d1bff 100644 --- a/core/io/encodings/encodings-tests.factor +++ b/core/io/encodings/encodings-tests.factor @@ -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