1 USING: tools.test quotations math kernel sequences
2 assocs namespaces make compiler.units ;
5 [ 3 ] [ 5 [ [ 2 - ] curry call ] compile-call ] unit-test
6 [ 3 ] [ [ 5 [ 2 - ] curry call ] compile-call ] unit-test
7 [ 3 ] [ [ 5 2 [ - ] 2curry call ] compile-call ] unit-test
8 [ 3 ] [ 5 [ 2 [ - ] 2curry call ] compile-call ] unit-test
9 [ 3 ] [ 5 2 [ [ - ] 2curry call ] compile-call ] unit-test
10 [ 3 ] [ 5 2 [ [ - ] 2curry 9 swap call /i ] compile-call ] unit-test
11 [ 3 ] [ 5 2 [ [ - ] 2curry [ 9 ] dip call /i ] compile-call ] unit-test
13 [ -10 -20 ] [ 10 20 -1 [ [ * ] curry bi@ ] compile-call ] unit-test
15 [ [ 5 2 - ] ] [ 5 [ [ 2 - ] curry ] compile-call >quotation ] unit-test
16 [ [ 5 2 - ] ] [ [ 5 [ 2 - ] curry ] compile-call >quotation ] unit-test
17 [ [ 5 2 - ] ] [ [ 5 2 [ - ] 2curry ] compile-call >quotation ] unit-test
18 [ [ 5 2 - ] ] [ 5 [ 2 [ - ] 2curry ] compile-call >quotation ] unit-test
19 [ [ 5 2 - ] ] [ 5 2 [ [ - ] 2curry ] compile-call >quotation ] unit-test
24 [ [ [ + ] curry ] dip 0 < [ -2 ] [ 6 ] if swap curry ]
25 compile-call >quotation
31 [ [ [ + ] curry ] dip 0 < [ -2 ] [ 6 ] if swap curry call ]
36 dup slip swap [ foobar ] [ drop ] if ; inline
38 [ ] [ [ [ f ] foobar ] compile-call ] unit-test
40 [ { 6 7 8 } ] [ { 1 2 3 } 5 [ [ + ] curry map ] compile-call ] unit-test
41 [ { 6 7 8 } ] [ { 1 2 3 } [ 5 [ + ] curry map ] compile-call ] unit-test
45 [ call f ] curry assoc-find 3drop
49 global [ [ drop , ] funky-assoc>map ] compile-call
53 [ 3 ] [ 1 [ 2 ] [ curry [ 3 ] [ 4 ] if ] compile-call ] unit-test
55 [ 3 ] [ t [ 3 [ ] curry 4 [ ] curry if ] compile-call ] unit-test
57 [ 3 ] [ t [ 3 [ ] curry [ 4 ] if ] compile-call ] unit-test
59 [ 4 ] [ f [ 3 [ ] curry 4 [ ] curry if ] compile-call ] unit-test
61 [ 4 ] [ f [ [ 3 ] 4 [ ] curry if ] compile-call ] unit-test