2 USING: io.streams.string kernel tools.test eval ;
4 : declaration-test-1 ( -- a ) 3 ; flushable
6 : declaration-test ( -- ) declaration-test-1 drop ;
8 [ "" ] [ [ declaration-test ] with-string-writer ] unit-test
10 [ ] [ "IN: compiler.tests USE: io : declaration-test-1 ( -- a ) \"X\" write f ;" eval ] unit-test
12 [ "X" ] [ [ declaration-test ] with-string-writer ] unit-test