2 USING: tools.test macros math kernel arrays
3 vectors io.streams.string prettyprint parser eval ;
5 MACRO: see-test ( a b -- c ) + ;
7 [ "USING: macros math ;\nIN: macros.tests\nMACRO: see-test ( a b -- c ) + ;\n" ]
8 [ [ \ see-test see ] with-string-writer ]
12 "USING: math ;\nIN: macros.tests\n: see-test ( a b -- c ) - ;\n" dup eval
13 [ \ see-test see ] with-string-writer =
16 [ ] [ "USING: macros stack-checker kernel ; IN: hanging-macro MACRO: c ( quot -- ) infer drop [ ] ; : a ( -- ) [ a ] c ;" eval ] unit-test