]> gitweb.factorcode.org Git - factor.git/commit
help.lint.coverage: fix coverage on predicate? words
authorCat Stevens <catb0t@protonmail.ch>
Tue, 21 Dec 2021 21:50:17 +0000 (16:50 -0500)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 22 Dec 2021 03:04:33 +0000 (19:04 -0800)
commitbfaa2c2cbd6f5123a8f4118a50fac1336d37aa4c
tree141a196fb91bd4086b791af7aec9f573f7b7604b
parentf93602c02915dc97014f77ffbdef778376002996
help.lint.coverage: fix coverage on predicate? words

fix a regression for `predicate?` words revealed by uses of
  `"help" word-prop` over `help:word-help`.

`"help" word-prop` is `f` for `predicate?` words like `array?` and
  `zero-matrix?`. a poorly-written comparison in
  `M\ word <word-help-coverage>` meant that result was effectively
  compared to an empty array { }, instead of just being tested for
  emptiness.

additionally, `(word-help)` is introduced to revive the old behaviour of
  `help:word-help` before the move to split `$inputs` and `$outputs` in
  Help rendering. `(word-help)` provides the actual help content for
  words where `"help" word-prop` is `f`, by calling `word-help*`.
extra/help/lint/coverage/coverage-tests.factor
extra/help/lint/coverage/coverage.factor