add unit test for c stream-tell

db4
Doug Coleman 2009-10-03 19:07:16 -05:00
parent 00efd780c9
commit 1d41f4c66c
1 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,5 @@
USING: tools.test io.files io.files.temp io io.streams.c
io.encodings.ascii strings ;
io.encodings.ascii strings destructors kernel ;
IN: io.streams.c.tests
[ "hello world" ] [
@ -8,3 +8,12 @@ IN: io.streams.c.tests
"test.txt" temp-file "rb" fopen <c-reader> stream-contents
>string
] unit-test
[ 0 ]
[ "test.txt" temp-file "rb" fopen <c-reader> [ stream-tell ] [ dispose ] bi ] unit-test
[ 3 ] [
"test.txt" temp-file "rb" fopen <c-reader>
3 over stream-read drop
[ stream-tell ] [ dispose ] bi
] unit-test