1 ! Copyright (C) 2011 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: code-arrays locals math tools.test ;
6 [ { 1 2 9 } ] [ {{ 1 2 3 sq }} ] unit-test
7 [ { 1 2 { 9 } } ] [ {{ 1 2 {{ 3 sq }} }} ] unit-test
9 [ H{ { 9 3 } { 4 1 } } ] [ H{{ {{ 3 sq 3 }} {{ 2 sq 1 }} }} ] unit-test
11 :: local-code-arrays ( -- seq ) {{ 1 2 3 + }} ;
13 [ { 1 5 } ] [ local-code-arrays ] unit-test