1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
use strict;
use warnings;
use FindBin;
use Test::More;
my $tests;
plan tests => $tests;
use Padre::Plugin::Vi::TabCompletition qw(clear_tab handle_tab set_original_cwd);
set_original_cwd($FindBin::Bin);
# if not prefix is given, show the available command
{
my $value = handle_tab();
is $value, 'e';
$value = handle_tab();
is $value, 'w';
$value = handle_tab();
is $value, 'e';
$value = handle_tab('', 0);
is $value, 'w';
$value = handle_tab('', 1);
is $value, 'e';
BEGIN { $tests += 5; }
}
|