]> gitweb.factorcode.org Git - factor.git/blob - basis/compiler/tests/call-effect.factor
a9fd313d646eddffcc0e87c04417a76c136432f4
[factor.git] / basis / compiler / tests / call-effect.factor
1 IN: compiler.tests.call-effect
2 USING: tools.test combinators generic.single sequences kernel ;
3
4 : execute-ic-test ( a b -- c ) execute( a -- c ) ;
5
6 ! VM type check error
7 [ 1 f execute-ic-test ] [ second 3 = ] must-fail-with
8
9 : call-test ( q -- ) call( -- ) ;
10
11 [ ] [ [ ] call-test ] unit-test
12 [ ] [ f [ drop ] curry call-test ] unit-test
13 [ ] [ [ ] [ ] compose call-test ] unit-test
14 [ [ 1 2 3 ] call-test ] [ wrong-values? ] must-fail-with