]> gitweb.factorcode.org Git - factor.git/blob - basis/compiler/tests/redefine4.factor
Merge branch 'master' of git://factorcode.org/git/factor into clean-linux-x86-32
[factor.git] / basis / compiler / tests / redefine4.factor
1 IN: compiler.tests
2 USING: io.streams.string kernel tools.test eval ;
3
4 : declaration-test-1 ( -- a ) 3 ; flushable
5
6 : declaration-test ( -- ) declaration-test-1 drop ;
7
8 [ "" ] [ [ declaration-test ] with-string-writer ] unit-test
9
10 [ ] [ "IN: compiler.tests USE: io : declaration-test-1 ( -- a ) \"X\" write f ;" (( -- )) eval ] unit-test
11
12 [ "X" ] [ [ declaration-test ] with-string-writer ] unit-test