io.buffers: adding another test of buffer-read-until.

char-rename
John Benediktsson 2016-11-09 10:11:51 -08:00
parent 816d1e31d5
commit 4bebe98fa1
1 changed files with 4 additions and 0 deletions
basis/io/buffers

View File

@ -61,6 +61,10 @@ io.buffers kernel libc namespaces sequences strings tools.test ;
{ "hello" CHAR: \s } [ " " "b" get buffer-read-until [ >string ] dip ] unit-test
"b" get dispose
"hello world" string>buffer "b" set
{ "hello world" f } [ "\n" "b" get buffer-read-until [ >string ] dip ] unit-test
"b" get dispose
{ 4 B{ 1 2 3 4 0 0 0 0 0 0 } } [
10 <buffer>
[ B{ 1 2 3 4 } binary-object rot buffer-write ]