File: 10-tab.t

package info (click to toggle)
libpadre-plugin-vi-perl 0.22-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 248 kB
  • ctags: 170
  • sloc: perl: 1,797; makefile: 11
file content (36 lines) | stat: -rw-r--r-- 517 bytes parent folder | download
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; }
}