]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/struct-arrays/struct-arrays-tests.factor
Fix conflicts
[factor.git] / basis / struct-arrays / struct-arrays-tests.factor
index 3fbdeacd935ef8c6ce04ed091be2bdcd158b5032..24caafa9faa3ed95de6fd3f6919fd0df9803db30 100755 (executable)
@@ -61,4 +61,10 @@ STRUCT: fixed-string { text char[100] } ;
     ALIEN: 123 4 fixed-string <direct-struct-array> [ (underlying)>> ] { } map-as
 ] unit-test
 
-[ 10 "int" <struct-array> ] must-fail
\ No newline at end of file
+[ 10 "int" <struct-array> ] must-fail
+
+STRUCT: wig { x int } ;
+: <bacon> ( -- wig ) 0 wig <struct-boa> ; inline
+: waterfall ( -- a b ) 1 wig <struct-array> <bacon> swap first x>> ; inline
+
+[ t ] [ [ waterfall ] { x>> } inlined? ] unit-test
\ No newline at end of file