summaryrefslogtreecommitdiff
path: root/t/03_translit.t
blob: bab807d24d668be741f348bd9d5632cf250f1cf9 (plain)
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 Test::More tests => 5;

my $truth;

my $script = "./blib/script/translit";


$truth = -e $script;

# 1
is($truth, 1, "translit found");


$truth = system($^X, $script, "-h");

# 2
is($truth, 0, "translit supports -h switch");


$truth = system($^X, $script, "--help");

# 3
is($truth, 0, "translit supports --help switch");


$truth = system($^X, $script, "-l");

# 4
is($truth, 0, "translit supports -l switch");


$truth = system($^X, $script, "--list");

# 5
is($truth, 0, "translit supports --list switch");