X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=basis%2Fstruct-arrays%2Fstruct-arrays-tests.factor;h=24caafa9faa3ed95de6fd3f6919fd0df9803db30;hp=3fbdeacd935ef8c6ce04ed091be2bdcd158b5032;hb=bbca00e2aec26098f6d021c3f21b8246eb5aaad3;hpb=32ecb5d49bb6de970c3ae03acaa71008669d71c5 diff --git a/basis/struct-arrays/struct-arrays-tests.factor b/basis/struct-arrays/struct-arrays-tests.factor index 3fbdeacd93..24caafa9fa 100755 --- a/basis/struct-arrays/struct-arrays-tests.factor +++ b/basis/struct-arrays/struct-arrays-tests.factor @@ -61,4 +61,10 @@ STRUCT: fixed-string { text char[100] } ; ALIEN: 123 4 fixed-string [ (underlying)>> ] { } map-as ] unit-test -[ 10 "int" ] must-fail \ No newline at end of file +[ 10 "int" ] must-fail + +STRUCT: wig { x int } ; +: ( -- wig ) 0 wig ; inline +: waterfall ( -- a b ) 1 wig swap first x>> ; inline + +[ t ] [ [ waterfall ] { x>> } inlined? ] unit-test \ No newline at end of file