Changeset 6e48560 for t/completion.t


Ignore:
Timestamp:
Jul 27, 2009, 11:23:57 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
5368d75
Parents:
d7bcff8
git-author:
Nelson Elhage <nelhage@mit.edu> (07/27/09 20:24:21)
git-committer:
Nelson Elhage <nelhage@mit.edu> (07/27/09 23:23:57)
Message:
Implement tab completion for command names.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • t/completion.t

    r13614e7 r6e48560  
    104104              1, -1, 7, 12);
    105105
     106
     107## Test common_prefix
     108
     109is(BarnOwl::Completion::common_prefix(qw(a b)), '');
     110is(BarnOwl::Completion::common_prefix(qw(a aa)), 'a');
     111
     112is(BarnOwl::Completion::common_prefix(qw(aa)), 'aa');
     113
     114is(BarnOwl::Completion::common_prefix(qw(a ab abc)), 'a');
     115
     116is(BarnOwl::Completion::common_prefix(qw(abc abcd)), 'abc');
     117
     118is(BarnOwl::Completion::common_prefix(qw(abc abc)), 'abc');
     119
    1061201;
Note: See TracChangeset for help on using the changeset viewer.