This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
A typemap is a file, not a directory.
[perl5.git] / dist / ExtUtils-ParseXS / t / 103-tidy_type.t
CommitLineData
73e91d5a
JK
1#!/usr/bin/perl
2use strict;
3use warnings;
4use Test::More tests => 3;
5use lib qw( lib );
6use ExtUtils::ParseXS::Utilities qw(
7 tidy_type
8);
9
10my $input;
11
12$input = ' * ** ';
13is( tidy_type($input), '***',
14 "Got expected value for '$input'" );
15
16$input = ' * ** ';
17is( tidy_type($input), '***',
18 "Got expected value for '$input'" );
19
20$input = ' * ** foobar * ';
21is( tidy_type($input), '*** foobar *',
22 "Got expected value for '$input'" );
23