From 7f16923ce1034f7f5402463698320ca2962c2f54 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Tue, 22 Mar 2016 07:44:28 -0700 Subject: [PATCH] tools.completion: fix help-lint for runs now that it returns slices. --- basis/tools/completion/completion-docs.factor | 2 +- basis/tools/completion/completion-tests.factor | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/basis/tools/completion/completion-docs.factor b/basis/tools/completion/completion-docs.factor index 87e675efa6..fc91a60dfb 100644 --- a/basis/tools/completion/completion-docs.factor +++ b/basis/tools/completion/completion-docs.factor @@ -26,7 +26,7 @@ HELP: runs { $values { "seq" "a sequence of integers" } { "newseq" "a sequence of sequences of integers" } } { $description "Groups subsequences of consecutive integers." } { $examples - { $example "USING: prettyprint tools.completion ;" "{ 1 2 3 5 6 9 10 } runs ." "V{ V{ 1 2 3 } V{ 5 6 } V{ 9 10 } }" } + { $example "USING: prettyprint sequences tools.completion ;" "{ 1 2 3 5 6 9 10 } runs [ { } like ] map ." "{ { 1 2 3 } { 5 6 } { 9 10 } }" } } ; HELP: score diff --git a/basis/tools/completion/completion-tests.factor b/basis/tools/completion/completion-tests.factor index ad37c290a7..189679cb5e 100644 --- a/basis/tools/completion/completion-tests.factor +++ b/basis/tools/completion/completion-tests.factor @@ -1,11 +1,11 @@ -USING: arrays assocs kernel sequences tools.test ; +USING: assocs kernel sequences tools.test ; IN: tools.completion { f } [ "abc" "def" fuzzy ] unit-test { V{ 4 5 6 } } [ "set-nth" "nth" fuzzy ] unit-test -{ { { 0 } { 4 5 6 } } } [ V{ 0 4 5 6 } runs [ >array ] map ] unit-test +{ { { 0 } { 4 5 6 } } } [ V{ 0 4 5 6 } runs [ { } like ] map ] unit-test { { "nth" "?nth" "set-nth" } } [ "nth" { "set-nth" "nth" "?nth" } dup zip completions keys