Prevent predicate engine words from showing up in usage. results
parent
03d6665166
commit
1d257c1ce4
|
@ -1,8 +1,18 @@
|
|||
USING: math kernel sequences io.files io.pathnames
|
||||
tools.crossref tools.test parser namespaces source-files generic
|
||||
definitions words accessors compiler.units ;
|
||||
tools.crossref tools.crossref.private tools.test parser
|
||||
namespaces source-files generic definitions words accessors
|
||||
compiler.units classes ;
|
||||
IN: tools.crossref.tests
|
||||
|
||||
GENERIC: predicate-test ( a -- b )
|
||||
|
||||
M: class predicate-test ;
|
||||
|
||||
M: generic predicate-test ;
|
||||
|
||||
[ f ] [ \ + irrelevant? ] unit-test
|
||||
[ t ] [ \ predicate-test "engines" word-prop first irrelevant? ] unit-test
|
||||
|
||||
GENERIC: foo ( a b -- c )
|
||||
|
||||
M: integer foo + ;
|
||||
|
|
|
@ -89,7 +89,7 @@ M: object irrelevant? drop f ;
|
|||
|
||||
M: default-method irrelevant? drop t ;
|
||||
|
||||
M: predicate-engine irrelevant? drop t ;
|
||||
M: predicate-engine-word irrelevant? drop t ;
|
||||
|
||||
PRIVATE>
|
||||
|
||||
|
|
Loading…
Reference in New Issue