diff --git a/extra/help/lint/coverage/coverage-tests.factor b/extra/help/lint/coverage/coverage-tests.factor index 400cd984d9..075fda7846 100644 --- a/extra/help/lint/coverage/coverage-tests.factor +++ b/extra/help/lint/coverage/coverage-tests.factor @@ -1,6 +1,6 @@ -USING: accessors fuel.help.private help.lint.coverage -help.lint.coverage.private help.markup help.syntax kernel -literals math math.matrices sequences sorting tools.test vocabs ; +USING: accessors help.lint.coverage help.lint.coverage.private +help.markup help.syntax kernel literals math math.matrices +sequences sorting tools.test vocabs ; IN: help.lint.coverage.tests set ; IN: help.lint.coverage @@ -78,6 +78,13 @@ DEFER: ?pluralize M: word-help-coverage summary [ (present-coverage) ] with-string-writer ; inline +: find-word ( name -- word/f ) + dup words-named dup length { + { 0 [ 2drop f ] } + { 1 [ first nip ] } + [ drop throw-restarts ] + } case ; + : sorted-loaded-child-vocabs ( prefix -- assoc ) loaded-child-vocab-names natural-sort ; inline