2011-11-28 01:03:55 -05:00
|
|
|
! Copyright (C) 2011 Doug Coleman.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
|
|
USING: code-arrays locals math tools.test ;
|
|
|
|
IN: code-arrays.tests
|
|
|
|
|
2015-07-02 16:37:42 -04:00
|
|
|
[ { 1 2 9 } ] [ {{ 1 2 3 sq }} ] unit-test
|
|
|
|
[ { 1 2 { 9 } } ] [ {{ 1 2 {{ 3 sq }} }} ] unit-test
|
2011-11-28 01:03:55 -05:00
|
|
|
|
2015-07-02 16:37:42 -04:00
|
|
|
[ H{ { 9 3 } { 4 1 } } ] [ H{{ {{ 3 sq 3 }} {{ 2 sq 1 }} }} ] unit-test
|
2011-11-28 01:03:55 -05:00
|
|
|
|
|
|
|
:: local-code-arrays ( -- seq ) {{ 1 2 3 + }} ;
|
|
|
|
|
2015-07-02 16:37:42 -04:00
|
|
|
[ { 1 5 } ] [ local-code-arrays ] unit-test
|