tools.completion: fix help-lint for runs now that it returns slices.

locals-and-roots
John Benediktsson 2016-03-22 07:44:28 -07:00
parent 6e2726f232
commit 7f16923ce1
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ HELP: runs
{ $values { "seq" "a sequence of integers" } { "newseq" "a sequence of sequences of integers" } } { $values { "seq" "a sequence of integers" } { "newseq" "a sequence of sequences of integers" } }
{ $description "Groups subsequences of consecutive integers." } { $description "Groups subsequences of consecutive integers." }
{ $examples { $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 HELP: score

View File

@ -1,11 +1,11 @@
USING: arrays assocs kernel sequences tools.test ; USING: assocs kernel sequences tools.test ;
IN: tools.completion IN: tools.completion
{ f } [ "abc" "def" fuzzy ] unit-test { f } [ "abc" "def" fuzzy ] unit-test
{ V{ 4 5 6 } } [ "set-nth" "nth" 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" "?nth" "set-nth" } } [
"nth" { "set-nth" "nth" "?nth" } dup zip completions keys "nth" { "set-nth" "nth" "?nth" } dup zip completions keys