2005-03-28 23:45:13 -05:00
|
|
|
IN: temporary
|
2005-04-07 18:54:02 -04:00
|
|
|
USING: kernel namespaces sequences strings test ;
|
2004-09-26 21:34:25 -04:00
|
|
|
|
2004-10-17 19:01:16 -04:00
|
|
|
[ "Hello" ] [
|
|
|
|
100 <sbuf> "buf" set
|
2005-04-19 20:28:01 -04:00
|
|
|
"Hello" "buf" get nappend
|
2004-10-17 19:01:16 -04:00
|
|
|
"buf" get sbuf-clone "buf-clone" set
|
2005-04-19 20:28:01 -04:00
|
|
|
"World" "buf-clone" get nappend
|
2005-03-05 16:33:40 -05:00
|
|
|
"buf" get sbuf>string
|
2004-10-17 19:01:16 -04:00
|
|
|
] unit-test
|
2005-04-02 02:39:33 -05:00
|
|
|
|
2005-04-03 19:02:50 -04:00
|
|
|
[ CHAR: h ] [ 0 SBUF" hello world" nth ] unit-test
|
2005-04-07 18:54:02 -04:00
|
|
|
[ CHAR: H ] [
|
|
|
|
CHAR: H 0 SBUF" hello world" [ set-nth ] keep 0 swap nth
|
|
|
|
] unit-test
|