This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
ParseXS - better support for duplicate ALIASes
[perl5.git] / dist / ExtUtils-ParseXS / t / 103-tidy_type.t
CommitLineData
73e91d5a
JK
1#!/usr/bin/perl
2use strict;
3use warnings;
ae7fdf58 4use Test::More;
ae7fdf58 5use ExtUtils::Typemaps;
73e91d5a 6
ae7fdf58
S
7my @tests = (
8 [' * ** ', '***'],
9 [' * ** ', '***'],
10 [' * ** foobar * ', '*** foobar *'],
11 ['unsigned int', 'unsigned int'],
12 ['std::vector<int>', 'std::vector<int>'],
13 ['std::vector< unsigned int >', 'std::vector<unsigned int>'],
14 ['std::vector< vector<unsigned int> >', 'std::vector<vector<unsigned int> >'],
15 ['std::map< map <unsigned int, int>, int>', 'std::map<map<unsigned int, int>, int>'],
16);
73e91d5a 17
ae7fdf58 18plan tests => scalar(@tests);
73e91d5a 19
ae7fdf58
S
20foreach my $test (@tests) {
21 is(ExtUtils::Typemaps::tidy_type($test->[0]), $test->[1], "Tidying '$test->[0]'");
22}
73e91d5a 23