+USING: see tools.test io.streams.string math summary words ;
IN: see.tests
-USING: see tools.test io.streams.string math words ;
CONSTANT: test-const 10
+
[ "IN: see.tests\nCONSTANT: test-const 10 inline\n" ]
[ [ \ test-const see ] with-string-writer ] unit-test
[ "USING: math ;\nIN: see.tests\nALIAS: test-alias + inline\n" ]
[ [ \ test-alias see ] with-string-writer ] unit-test
-[ ] [ gensym see ] unit-test
\ No newline at end of file
+[ "IN: see.tests ALIAS: test-alias ( x y -- z )" ]
+[ \ test-alias summary ] unit-test
+
+[ ] [ gensym see ] unit-test
M: pathname synopsis* pprint* ;
+M: alias summary
+ [
+ 0 margin set 1 line-limit set
+ [
+ {
+ [ seeing-word ]
+ [ definer. ]
+ [ pprint-word ]
+ [ stack-effect pprint-effect ]
+ } cleave
+ ] with-in
+ ] with-string-writer ;
+
M: word summary synopsis ;
GENERIC: declarations. ( obj -- )