tools.completion: fix help-lint for runs now that it returns slices.
parent
6e2726f232
commit
7f16923ce1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue