FUEL: words-matching outputs an assoc so pick only the keys which are the words + test
parent
2095fd57de
commit
bc3a6660b8
|
@ -0,0 +1,6 @@
|
||||||
|
USING: fuel.xref kernel sequences tools.test ;
|
||||||
|
IN: fuel.xref.tests
|
||||||
|
|
||||||
|
{ t } [
|
||||||
|
"fuel" apropos-xref empty? not
|
||||||
|
] unit-test
|
|
@ -48,7 +48,7 @@ PRIVATE>
|
||||||
|
|
||||||
: callees-xref ( word -- seq ) uses format-xrefs sort-xrefs ;
|
: callees-xref ( word -- seq ) uses format-xrefs sort-xrefs ;
|
||||||
|
|
||||||
: apropos-xref ( str -- seq ) words-matching format-xrefs ;
|
: apropos-xref ( str -- seq ) words-matching keys format-xrefs ;
|
||||||
|
|
||||||
: vocab-xref ( vocab -- seq ) words format-xrefs ;
|
: vocab-xref ( vocab -- seq ) words format-xrefs ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue