Unit test fixes
parent
80e580f91d
commit
912339d062
|
@ -157,8 +157,12 @@ H{ } "x" set
|
|||
] unit-test
|
||||
|
||||
[ { "one" "two" 3 } ] [
|
||||
H{ { 1 "one" } { 2 "two" } }
|
||||
{ 1 2 3 } clone [ substitute ] keep
|
||||
{ 1 2 3 } clone dup
|
||||
H{ { 1 "one" } { 2 "two" } } substitute-here
|
||||
] unit-test
|
||||
|
||||
[ { "one" "two" 3 } ] [
|
||||
{ 1 2 3 } H{ { 1 "one" } { 2 "two" } } substitute
|
||||
] unit-test
|
||||
|
||||
[ f ] [ { 0 1 1 2 3 5 } all-unique? ] unit-test
|
||||
|
|
|
@ -23,10 +23,10 @@ TUPLE: crypt-stream handle eof? ;
|
|||
CRYPT_SESSINFO_ACTIVE 1 set-attribute ;
|
||||
|
||||
: <crypt-stream> ( handle -- stream )
|
||||
crypt-stream construct-empty
|
||||
over init-crypt-stream
|
||||
default-buffer-size <buffer> over set-delegate
|
||||
tuck set-crypt-stream-handle
|
||||
dup init-crypt-stream
|
||||
default-buffer-size <buffer>
|
||||
{ set-crypt-stream-handle set-delegate }
|
||||
crypt-stream construct
|
||||
dup <line-reader> swap <plain-writer> <duplex-stream> ;
|
||||
|
||||
: check-read ( err -- eof? )
|
||||
|
|
|
@ -62,7 +62,7 @@ IN: temporary
|
|||
"Subject: Factor rules"
|
||||
f
|
||||
f
|
||||
" "
|
||||
""
|
||||
"Hi guys"
|
||||
"Bye guys"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue