#!/usr/bin/perl use strict; use warnings; use Test::More; use ExtUtils::Typemaps; my @tests = ( [' * ** ', '***'], [' * ** ', '***'], [' * ** foobar * ', '*** foobar *'], ['unsigned int', 'unsigned int'], ['std::vector', 'std::vector'], ['std::vector< unsigned int >', 'std::vector'], ['std::vector< vector >', 'std::vector >'], ['std::map< map , int>', 'std::map, int>'], ); plan tests => scalar(@tests); foreach my $test (@tests) { is(ExtUtils::Typemaps::tidy_type($test->[0]), $test->[1], "Tidying '$test->[0]'"); }