Skip to content

Commit

Permalink
wrap.words: make it work with empty input.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Sep 20, 2015
1 parent 9af266d commit e0bcd74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions basis/wrap/words/words-tests.factor
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
USING: tools.test wrap.words sequences ;
IN: wrap.words.tests

{ { } } [ f 35 35 wrap-words ] unit-test
{ { } } [ { } 35 35 wrap-words ] unit-test

{
{
{
Expand Down
2 changes: 1 addition & 1 deletion basis/wrap/words/words.factor
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ C: <wrapping-word> wrapping-word
[ prefix ] when* ;

: words>elements ( seq -- newseq )
split-words ?first-break make-elements ;
[ { } ] [ split-words ?first-break make-elements ] if-empty ;

PRIVATE>

Expand Down

0 comments on commit e0bcd74

Please sign in to comment.