Changeset ccafe64


Ignore:
Timestamp:
Mar 2, 2010, 9:14:44 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
af21934
Parents:
dffb8b8
git-author:
David Benjamin <davidben@mit.edu> (02/27/10 21:49:59)
git-committer:
David Benjamin <davidben@mit.edu> (03/02/10 21:14:44)
Message:
Add additional (failing) tests for completer parse

Completer should ignore leading whitespace. Also, to avoid invalid
indices and different behavior for first word compared to rest, we
change the empty string to give [''] as opposed to [].

Signed-off-by: David Benjamin <davidben@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • t/completion.t

    r0f8efe0 rccafe64  
    7575              [qw(Hello, World)], 1, 5, 7, 12);
    7676
     77test_tokenize(" \t Hello, World", '',
     78              [qw(Hello, World)], 1, 5, 10, 15);
     79
    7780test_tokenize('', '',
    78               [qw()], 0, 0, 0, 0);
     81              [''], 0, 0, 0, 0);
     82
     83test_tokenize('   ', '',
     84              [''], 0, 0, 3, 3);
    7985
    8086test_tokenize('Hello', 'World',
    8187              [qw(HelloWorld)], 0, 5, 0, 10);
     88
     89test_tokenize(' Hello', 'World',
     90              [qw(HelloWorld)], 0, 5, 1, 11);
    8291
    8392test_tokenize('lorem ipsum dolor ', 'sit amet',
Note: See TracChangeset for help on using the changeset viewer.